diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-10-18 10:58:58 +0200 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:10:16 +0000 |
commit | 38a25a8dfefd549ce13c91f28b0f3a3595e445c7 (patch) | |
tree | 32b4f45f43cefaaa71f34b00351a19e2cea16f35 /lib/gopher.c | |
parent | 589483ead121a0cebb536a12cfcee98cda8e40c4 (diff) | |
download | gnurl-38a25a8dfefd549ce13c91f28b0f3a3595e445c7.tar.gz gnurl-38a25a8dfefd549ce13c91f28b0f3a3595e445c7.tar.bz2 gnurl-38a25a8dfefd549ce13c91f28b0f3a3595e445c7.zip |
select: switch to macros in uppercase
Curl_select_ready() was the former API that was replaced with
Curl_select_check() a while back and the former arg setup was provided
with a define (in order to leave existing code unmodified).
Now we instead offer SOCKET_READABLE and SOCKET_WRITABLE for the most
common shortcuts where only one socket is checked. They're also more
visibly macros.
Diffstat (limited to 'lib/gopher.c')
-rw-r--r-- | lib/gopher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gopher.c b/lib/gopher.c index f1efb6042..f16389e09 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -144,7 +144,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done) Wait a while for the socket to be writable. Note that this doesn't acknowledge the timeout. */ - Curl_socket_ready(CURL_SOCKET_BAD, sockfd, 100); + SOCKET_WRITABLE(sockfd, 100); } free(sel_org); |