summaryrefslogtreecommitdiff
path: root/ares_getsock.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-03-11 18:53:42 +0000
committerYang Tse <yangsita@gmail.com>2010-03-11 18:53:42 +0000
commit907b09ccd04814cfc4873d073fafcda0bc9aaaed (patch)
tree822a20815122da1fc342e19446a6948af4cafcc4 /ares_getsock.c
parent3081404dec56cce26507be52dd6bfe37995e7516 (diff)
downloadc-ares-907b09ccd04814cfc4873d073fafcda0bc9aaaed.tar.gz
c-ares-907b09ccd04814cfc4873d073fafcda0bc9aaaed.tar.bz2
c-ares-907b09ccd04814cfc4873d073fafcda0bc9aaaed.zip
fix compiler warning
Diffstat (limited to 'ares_getsock.c')
-rw-r--r--ares_getsock.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ares_getsock.c b/ares_getsock.c
index 1c5e9ff..52aaecd 100644
--- a/ares_getsock.c
+++ b/ares_getsock.c
@@ -1,6 +1,6 @@
/* $Id$ */
-/* Copyright (C) 2005 - 2007, Daniel Stenberg
+/* Copyright (C) 2005 - 2010, Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
@@ -23,7 +23,7 @@
#include "ares_private.h"
int ares_getsock(ares_channel channel,
- int *s,
+ ares_socket_t *socks,
int numsocks) /* size of the 'socks' array */
{
struct server_state *server;
@@ -32,8 +32,6 @@ int ares_getsock(ares_channel channel,
int bitmap = 0;
unsigned int setbits = 0xffffffff;
- ares_socket_t *socks = (ares_socket_t *)s;
-
/* Are there any active queries? */
int active_queries = !ares__is_list_empty(&(channel->all_queries));