diff options
author | Yang Tse <yangsita@gmail.com> | 2010-03-11 18:53:42 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-03-11 18:53:42 +0000 |
commit | 52cd332b954eda192815bb950d3937aa3f10050f (patch) | |
tree | 01a786bfdb19c1b80efdb5326fa988c57e52683b /ares/ares_getsock.c | |
parent | 3709ffc700060e9cfee6968ea6a60cce92977d89 (diff) |
fix compiler warning
Diffstat (limited to 'ares/ares_getsock.c')
-rw-r--r-- | ares/ares_getsock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ares/ares_getsock.c b/ares/ares_getsock.c index 1c5e9ff26..52aaecd0b 100644 --- a/ares/ares_getsock.c +++ b/ares/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)); |