diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-11-27 23:29:30 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-11-27 23:29:30 +0100 |
commit | 81ae6d01fa9c0b599e4831fa268acf5b6bc8b142 (patch) | |
tree | 89bb4b2854b388317410f40f606c31b196622b23 /lib | |
parent | 19a8afb3c025122b95733352d67dec4f84058aac (diff) |
nonblock: fix setting non-blocking mode for Amiga
IoctlSocket() apparently wants a pointer to a long, passed as a char *
in its third parameter. This bug was introduced already back in commit
c5fdeef41d from October 1 2001!
Bug: http://curl.haxx.se/mail/lib-2015-11/0088.html
Reported-by: Norbert Kett
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nonblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c index 1447c877d..189fc5dea 100644 --- a/lib/nonblock.c +++ b/lib/nonblock.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2015, 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 @@ -77,7 +77,7 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ /* Amiga */ long flags = nonblock ? 1L : 0L; - return IoctlSocket(sockfd, FIONBIO, flags); + return IoctlSocket(sockfd, FIONBIO, (char *)&flags); #elif defined(HAVE_SETSOCKOPT_SO_NONBLOCK) |