summaryrefslogtreecommitdiff
path: root/ares.h
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
commite2d80922fed33ab428d637d870197f9db0330de0 (patch)
treee0d7a95473206f9694214dc321ff89e083a42324 /ares.h
parent0e74c9c8cf60b15a676b13179066c82fca425106 (diff)
downloadc-ares-e2d80922fed33ab428d637d870197f9db0330de0.tar.gz
c-ares-e2d80922fed33ab428d637d870197f9db0330de0.tar.bz2
c-ares-e2d80922fed33ab428d637d870197f9db0330de0.zip
Avoid shadowing a global declaration
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/ares.h b/ares.h
index 03b6a92..4437e3d 100644
--- a/ares.h
+++ b/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;