mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:43:32 +03:00
compiler warning: fix
Fix compiler warning: conversion may lose significant bits
This commit is contained in:
parent
c8c8816a97
commit
3c9ff41a1f
6 changed files with 30 additions and 2 deletions
|
|
@ -46,6 +46,10 @@ void curlx_FD_SET(int fd, fd_set *fdset);
|
|||
|
||||
void curlx_FD_ZERO(fd_set *fdset);
|
||||
|
||||
unsigned short curlx_htons(unsigned short usnum);
|
||||
|
||||
unsigned short curlx_ntohs(unsigned short usnum);
|
||||
|
||||
#ifndef BUILDING_WARNLESS_C
|
||||
# undef FD_ISSET
|
||||
# define FD_ISSET(a,b) curlx_FD_ISSET((a),(b))
|
||||
|
|
@ -53,6 +57,10 @@ void curlx_FD_ZERO(fd_set *fdset);
|
|||
# define FD_SET(a,b) curlx_FD_SET((a),(b))
|
||||
# undef FD_ZERO
|
||||
# define FD_ZERO(a) curlx_FD_ZERO((a))
|
||||
# undef htons
|
||||
# define htons(a) curlx_htons((a))
|
||||
# undef ntohs
|
||||
# define ntohs(a) curlx_ntohs((a))
|
||||
#endif
|
||||
|
||||
#endif /* __INTEL_COMPILER && __unix__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue