mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:23:30 +03:00
sockfilt.c: fix some W64 compiler warnings
This commit is contained in:
parent
06558695d5
commit
a9ca5e61e5
3 changed files with 41 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2013, 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
|
||||
|
|
@ -378,6 +378,28 @@ size_t curlx_sitouz(int sinum)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
|
||||
/*
|
||||
** curl_socket_t to signed int
|
||||
*/
|
||||
|
||||
int curlx_sktosi(curl_socket_t s)
|
||||
{
|
||||
return (int)((ssize_t) s);
|
||||
}
|
||||
|
||||
/*
|
||||
** signed int to curl_socket_t
|
||||
*/
|
||||
|
||||
curl_socket_t curlx_sitosk(int i)
|
||||
{
|
||||
return (curl_socket_t)((ssize_t) i);
|
||||
}
|
||||
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(__unix__)
|
||||
|
||||
int curlx_FD_ISSET(int fd, fd_set *fdset)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2013, 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
|
||||
|
|
@ -22,6 +22,10 @@
|
|||
*
|
||||
***************************************************************************/
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
#include <curl/curl.h> /* for curl_socket_t */
|
||||
#endif
|
||||
|
||||
unsigned short curlx_ultous(unsigned long ulnum);
|
||||
|
||||
unsigned char curlx_ultouc(unsigned long ulnum);
|
||||
|
|
@ -48,6 +52,14 @@ int curlx_sztosi(ssize_t sznum);
|
|||
|
||||
size_t curlx_sitouz(int sinum);
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
|
||||
int curlx_sktosi(curl_socket_t s);
|
||||
|
||||
curl_socket_t curlx_sitosk(int i);
|
||||
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(__unix__)
|
||||
|
||||
int curlx_FD_ISSET(int fd, fd_set *fdset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue