From 23e096cc60eb73f24b812e4ceba7c4c2c141e2db Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Nov 2015 00:51:24 +0100 Subject: tree-wide: make macros for converting fds to pointers and back generic and use them everywhere --- src/basic/fdset.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/basic/fdset.c') diff --git a/src/basic/fdset.c b/src/basic/fdset.c index fd2e1149f5..e5452f3bb0 100644 --- a/src/basic/fdset.c +++ b/src/basic/fdset.c @@ -36,10 +36,6 @@ #define MAKE_SET(s) ((Set*) s) #define MAKE_FDSET(s) ((FDSet*) s) -/* Make sure we can distinguish fd 0 and NULL */ -#define FD_TO_PTR(fd) INT_TO_PTR((fd)+1) -#define PTR_TO_FD(p) (PTR_TO_INT(p)-1) - FDSet *fdset_new(void) { return MAKE_FDSET(set_new(NULL)); } -- cgit v1.2.3-54-g00ecf