diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-05 09:08:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-05 09:08:10 +0000 |
commit | 45065f1466bc5f5eaea0e837938b97808511f143 (patch) | |
tree | 6c0ede89d1f088a946d545c05fa727573fac38d7 /src/common/compat.h | |
parent | 4e773352c2ceb75f144c5da11046428e3d4d88c7 (diff) | |
download | tor-45065f1466bc5f5eaea0e837938b97808511f143.tar.gz tor-45065f1466bc5f5eaea0e837938b97808511f143.zip |
simplify code now that libevent considers all sockets pollable.
what we really mean now is ">= 0", which is clearer to test for.
svn:r6543
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 6116264d79..b70963b4be 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -175,10 +175,6 @@ int touch_file(const char *fname); typedef int socklen_t; #endif -/* Now that we use libevent, all real sockets are safe for polling ... or - * if they aren't, libevent will help us. */ -#define SOCKET_IS_POLLABLE(fd) ((fd)>=0) - struct in_addr; int tor_inet_aton(const char *cp, struct in_addr *addr); int tor_lookup_hostname(const char *name, uint32_t *addr); |