summaryrefslogtreecommitdiffstats
path: root/src/include/port-sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port-sockets.h')
-rw-r--r--src/include/port-sockets.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h
index eb87bc1c90..09e3cfb418 100644
--- a/src/include/port-sockets.h
+++ b/src/include/port-sockets.h
@@ -157,14 +157,14 @@ typedef struct iovec sg_buf;
#define inet_ntop(AF,SRC,DST,CNT) \
((AF) == AF_INET \
? ((CNT) < 16 \
- ? (SOCKET_SET_ERRNO(ENOSPC), NULL) \
+ ? (SOCKET_SET_ERRNO(ENOSPC), (const char *)NULL) \
: (sprintf((DST), "%d.%d.%d.%d", \
((const unsigned char *)(const void *)(SRC))[0] & 0xff, \
((const unsigned char *)(const void *)(SRC))[1] & 0xff, \
((const unsigned char *)(const void *)(SRC))[2] & 0xff, \
((const unsigned char *)(const void *)(SRC))[3] & 0xff), \
(DST))) \
- : (SOCKET_SET_ERRNO(EAFNOSUPPORT), NULL))
+ : (SOCKET_SET_ERRNO(EAFNOSUPPORT), (const char *)NULL))
#define HAVE_INET_NTOP
#endif