aboutsummaryrefslogtreecommitdiff
path: root/lib/warnless.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-26 15:44:53 +0200
committerYang Tse <yangsita@gmail.com>2011-05-26 15:44:53 +0200
commit3c9ff41a1fef4b03571f5a7f905e5016cae55208 (patch)
treedbdc9b5ca8fccf532a35763a4acc71869e1e3aa3 /lib/warnless.h
parentc8c8816a97d0214184ee1d4dfaf2775edf28ff53 (diff)
compiler warning: fix
Fix compiler warning: conversion may lose significant bits
Diffstat (limited to 'lib/warnless.h')
-rw-r--r--lib/warnless.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/warnless.h b/lib/warnless.h
index dfa16ef29..9ac59ac29 100644
--- a/lib/warnless.h
+++ b/lib/warnless.h
@@ -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__ */