diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:51:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:52:10 +0100 |
commit | 23e096cc60eb73f24b812e4ceba7c4c2c141e2db (patch) | |
tree | cb29a125f9e1028d51a12182e261aa7d493ff0d5 /src/basic/fdset.c | |
parent | b16fee15ff0dbaa8140beb62dc27f3a686c70258 (diff) |
tree-wide: make macros for converting fds to pointers and back generic and use them everywhere
Diffstat (limited to 'src/basic/fdset.c')
-rw-r--r-- | src/basic/fdset.c | 4 |
1 files changed, 0 insertions, 4 deletions
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)); } |