compiler warning: fix

Fix compiler warning: conversion may lose significant bits
This commit is contained in:
Yang Tse 2011-05-26 15:44:53 +02:00
parent c8c8816a97
commit 3c9ff41a1f
6 changed files with 30 additions and 2 deletions

View file

@ -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__ */