From 45065f1466bc5f5eaea0e837938b97808511f143 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 5 Jun 2006 09:08:10 +0000 Subject: simplify code now that libevent considers all sockets pollable. what we really mean now is ">= 0", which is clearer to test for. svn:r6543 --- src/common/compat.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/common/compat.h') 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); -- cgit v1.2.3-54-g00ecf