diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-18 17:17:18 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-18 17:17:18 +0000 |
commit | 3bac381e3fb44577d68e97c626a82a5d8d84694b (patch) | |
tree | 5aff621d266534d4aade7e7a294eb4f764fc86e7 /ares_process.c | |
parent | b8a1ea0e833338a7f77917c28584efd1f3d72a2b (diff) | |
download | c-ares-3bac381e3fb44577d68e97c626a82a5d8d84694b.tar.gz c-ares-3bac381e3fb44577d68e97c626a82a5d8d84694b.tar.bz2 c-ares-3bac381e3fb44577d68e97c626a82a5d8d84694b.zip |
Renamed internal function to avoid a variable shadowing it
Diffstat (limited to 'ares_process.c')
-rw-r--r-- | ares_process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares_process.c b/ares_process.c index a6820de..d977d09 100644 --- a/ares_process.c +++ b/ares_process.c @@ -725,10 +725,10 @@ void ares__send_query(ares_channel channel, struct query *query, time_t now) } /* - * nonblock() set the given socket to either blocking or non-blocking mode + * setsocknonblock sets the given socket to either blocking or non-blocking mode * based on the 'nonblock' boolean argument. This function is highly portable. */ -static int nonblock(ares_socket_t sockfd, /* operate on this */ +static int setsocknonblock(ares_socket_t sockfd, /* operate on this */ int nonblock /* TRUE or FALSE */) { #undef SETBLOCK @@ -798,7 +798,7 @@ static int nonblock(ares_socket_t sockfd, /* operate on this */ static int configure_socket(int s, ares_channel channel) { - nonblock(s, TRUE); + setsocknonblock(s, TRUE); #if defined(FD_CLOEXEC) && !defined(MSDOS) /* Configure the socket fd as close-on-exec. */ |