aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-19 10:52:28 +0000
committerYang Tse <yangsita@gmail.com>2007-10-19 10:52:28 +0000
commit9a70a6d0c0d1a23dd6c3d286a8fe4359c179e835 (patch)
tree22b471f735cde307ddce8c06c8325236e8dfe184
parentee19b44fe09e001f12cf2e683a5e68d7d4fc52c1 (diff)
Avoid shadowing a global declaration
-rw-r--r--ares/ares.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 03b6a924a..4437e3d3a 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -158,17 +158,10 @@ typedef int ares_socket_t;
#define ares_socket_typedef
#endif /* ares_socket_typedef */
-#ifdef WIN32
-typedef void (*ares_sock_state_cb)(void *data,
- SOCKET socket,
- int readable,
- int writable);
-#else
typedef void (*ares_sock_state_cb)(void *data,
- int socket,
+ ares_socket_t socket_fd,
int readable,
int writable);
-#endif
struct apattern;