diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-03-15 02:11:02 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-03-15 02:11:02 +0000 |
commit | 1ec90531fc28cbed5bdab2b1549097a6dd329653 (patch) | |
tree | 385c2831cab163ab96d75566876eae1dbd8242a3 /sys | |
parent | 6fcfd0d23dbe0848151ef07c42448e40fc6e8d9d (diff) |
typecast in CMSG_NXTHDR. spotted by hugh@openbsd
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 315f9f4f0de..9061f77a118 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.42 2002/03/14 01:27:14 millert Exp $ */ +/* $OpenBSD: socket.h,v 1.43 2002/03/15 02:11:01 itojun Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -355,7 +355,7 @@ struct cmsghdr { #define CMSG_NXTHDR(mhdr, cmsg) \ (((caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \ __CMSG_ALIGN(sizeof(struct cmsghdr)) > \ - (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))) |