* port-sockets.h (inet_ntop): Cast NULL to desired return pointer type
authorKen Raeburn <raeburn@mit.edu>
Fri, 16 Jul 2004 20:50:40 +0000 (20:50 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 16 Jul 2004 20:50:40 +0000 (20:50 +0000)
ticket: 2592
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16604 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/port-sockets.h

index 88178298ae0494caabc381ff1fb3bcf89997201f..7f05b0638af00bf77f03364377fd164dbb4ec54b 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-16  Ken Raeburn  <raeburn@mit.edu>
+
+       * port-sockets.h (inet_ntop): Cast NULL to desired return pointer
+       type.
+
 2004-07-15  Alexandra Ellwood  <lxs@mit.edu>
 
        * k5-int.h (krb5_os_context) 
index eb87bc1c904c2837f08abd82e02a89741b82ef8e..09e3cfb41853dd6b571969c8bd246bb48ccffa2c 100644 (file)
@@ -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