Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys back to return u_char * according to:



details:   https://anonhg.NetBSD.org/src/rev/8a193842bdc5
branches:  trunk
changeset: 335806:8a193842bdc5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 24 17:15:22 2015 +0000

description:
back to return u_char * according to:
    http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html

diffstat:

 sys/sys/socket.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 4e0edd8ec7a0 -r 8a193842bdc5 sys/sys/socket.h
--- a/sys/sys/socket.h  Sat Jan 24 16:21:33 2015 +0000
+++ b/sys/sys/socket.h  Sat Jan 24 17:15:22 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socket.h,v 1.113 2015/01/20 01:10:16 christos Exp $    */
+/*     $NetBSD: socket.h,v 1.114 2015/01/24 17:15:22 christos Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -528,11 +528,11 @@
 
 /* given pointer to struct cmsghdr, return pointer to data */
 #define        CMSG_DATA(cmsg) \
-    ((void *)((u_char *)(void *)(cmsg) + \
-    __CMSG_ALIGN(sizeof(struct cmsghdr))))
+    ((u_char *)(void *)(cmsg) + \
+    __CMSG_ALIGN(sizeof(struct cmsghdr)))
 #define        CCMSG_DATA(cmsg) \
-    ((const void *)((const u_char *)(const void *)(cmsg) + \
-    __CMSG_ALIGN(sizeof(struct cmsghdr))))
+    ((const u_char *)(const void *)(cmsg) + \
+    __CMSG_ALIGN(sizeof(struct cmsghdr)))
 
 /*
  * Alignment requirement for CMSG struct manipulation.



Home | Main Index | Thread Index | Old Index