gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 107/254: sendrecv: fix MinGW-w64 warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 107/254: sendrecv: fix MinGW-w64 warning
Date: Sat, 17 Jun 2017 16:52:19 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit d99acd937a01ee7111c347e08c1f25cea54a6ab9
Author: Marcel Raad <address@hidden>
AuthorDate: Sun May 7 22:14:28 2017 +0200

    sendrecv: fix MinGW-w64 warning
    
    The first argument to select is an int, while curl_socket_t is
    unsigned long long when using WinSock. It's ignored anyway [1].
    
    [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx
---
 docs/examples/sendrecv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/examples/sendrecv.c b/docs/examples/sendrecv.c
index 662323487..2b9dc9b19 100644
--- a/docs/examples/sendrecv.c
+++ b/docs/examples/sendrecv.c
@@ -52,7 +52,7 @@ static int wait_on_socket(curl_socket_t sockfd, int for_recv, 
long timeout_ms)
   }
 
   /* select() returns the number of signalled sockets or -1 */
-  res = select(sockfd + 1, &infd, &outfd, &errfd, &tv);
+  res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv);
   return res;
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]