]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Avoid shadowing a global declaration
authorYang Tse <yangsita@gmail.com>
Fri, 19 Oct 2007 10:52:28 +0000 (10:52 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 19 Oct 2007 10:52:28 +0000 (10:52 +0000)
ares/ares.h

index 03b6a924a6c18c85de070de4675f2758c922d1a5..4437e3d3ab939439a404d8e293ae5bcc27289858 100644 (file)
@@ -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;