diff options
author | Yang Tse <yangsita@gmail.com> | 2007-09-30 19:43:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-09-30 19:43:23 +0000 |
commit | 38dd0ede9ddcf7491792e7edd98665841667ae67 (patch) | |
tree | 06e6b1a558f449ba6f0dcd7b8f9f4d84bd40f443 /ares | |
parent | 62c264bcdbcc3009d902300bbccbe11e569dc775 (diff) |
Fix compiler warning
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_process.c b/ares/ares_process.c index 4ff918e22..9a05f9785 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -815,13 +815,13 @@ static int configure_socket(int s, ares_channel channel) /* Set the socket's send and receive buffer sizes. */ if ((channel->socket_send_buffer_size > 0) && setsockopt(s, SOL_SOCKET, SO_SNDBUF, - (const void*)&channel->socket_send_buffer_size, + (void *)&channel->socket_send_buffer_size, sizeof(channel->socket_send_buffer_size)) == -1) return -1; if ((channel->socket_receive_buffer_size > 0) && setsockopt(s, SOL_SOCKET, SO_RCVBUF, - (const void*)&channel->socket_receive_buffer_size, + (void *)&channel->socket_receive_buffer_size, sizeof(channel->socket_receive_buffer_size)) == -1) return -1; @@ -854,7 +854,7 @@ static int open_tcp_socket(ares_channel channel, struct server_state *server) */ opt = 1; if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, - (const void*)&opt, sizeof(opt)) == -1) + (void *)&opt, sizeof(opt)) == -1) { close(s); return -1; |