From 52cd332b954eda192815bb950d3937aa3f10050f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 11 Mar 2010 18:53:42 +0000 Subject: fix compiler warning --- ares/ares_getsock.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ares/ares_getsock.c') 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)); -- cgit v1.2.3