Source-Changes-HG archive

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

[src/trunk]: src/sys/sys avoid void * arithmetic (msg_control is now void *).



details:   https://anonhg.NetBSD.org/src/rev/43334cdff95a
branches:  trunk
changeset: 474220:43334cdff95a
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jul 01 20:09:57 1999 +0000

description:
avoid void * arithmetic (msg_control is now void *).

diffstat:

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

diffs (18 lines):

diff -r 50d395591c91 -r 43334cdff95a sys/sys/socket.h
--- a/sys/sys/socket.h  Thu Jul 01 20:07:05 1999 +0000
+++ b/sys/sys/socket.h  Thu Jul 01 20:09:57 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socket.h,v 1.44 1999/07/01 08:13:00 itojun Exp $       */
+/*     $NetBSD: socket.h,v 1.45 1999/07/01 20:09:57 itojun Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -405,7 +405,7 @@
 /* given pointer to struct cmsghdr, return pointer to next cmsghdr */
 #define        CMSG_NXTHDR(mhdr, cmsg) \
        (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \
-           (caddr_t) ((mhdr)->msg_control + (mhdr)->msg_controllen)) ? \
+           (((caddr_t)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \
            (struct cmsghdr *)NULL : \
            (struct cmsghdr *)((caddr_t)(cmsg) + CMSG_ALIGN((cmsg)->cmsg_len)))
 



Home | Main Index | Thread Index | Old Index