From 19fb255f9e91a8d46465fdda8f0a805fa53737f9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Aug 2006 18:20:45 +0000 Subject: Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and not always zero! --- ares_getsock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ares_getsock.c') diff --git a/ares_getsock.c b/ares_getsock.c index 3c52a83..55f4c9d 100644 --- a/ares_getsock.c +++ b/ares_getsock.c @@ -28,7 +28,6 @@ int ares_getsock(ares_channel channel, int numsocks) /* size of the 'socks' array */ { struct server_state *server; - ares_socket_t nfds; int i; int sockindex=0; int bitmap = 0; @@ -40,7 +39,6 @@ int ares_getsock(ares_channel channel, if (!channel->queries) return 0; - nfds = 0; for (i = 0; i < channel->nservers; i++) { server = &channel->servers[i]; @@ -67,5 +65,5 @@ int ares_getsock(ares_channel channel, } } - return (int)nfds; + return bitmap; } -- cgit v1.2.3