NetBSD Problem Report #6991
Received: (qmail 7326 invoked from network); 12 Feb 1999 11:22:05 -0000
Message-Id: <199902121122.MAA15470@rvc1.informatik.ba-stuttgart.de>
Date: Fri, 12 Feb 1999 12:22:19 +0100 (CET)
From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
Reply-To: helbig@Informatik.BA-Stuttgart.DE
To: gnats-bugs@gnats.netbsd.org
Subject: regress/sys/kern/unfdpass fails to compile
X-Send-Pr-Version: 3.95
>Number: 6991
>Category: bin
>Synopsis: regress/sys/kern/unfdpass fails to compile
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 12 03:35:01 +0000 1999
>Closed-Date: Fri Feb 12 18:06:46 +0000 1999
>Last-Modified: Fri Feb 12 18:07:35 +0000 1999
>Originator: Wolfgang Helbig
>Release: NetBSD-current Feb 11 1999
>Organization:
>Environment:
System: NetBSD rvc1 1.3I NetBSD 1.3I (RVC1) #7: Thu Feb 11 22:00:49 CET 1999 helbig@rvc1:/usr/src/sys/arch/i386/compile/RVC1 i386
>Description:
all ===> regress/sys/kern/unfdpass
cc -O2 -Werror -c /usr/src/regress/sys/kern/unfdpass/unfdpass.c
cc1: warnings being treated as errors
/usr/src/regress/sys/kern/unfdpass/unfdpass.c: In function `main':
/usr/src/regress/sys/kern/unfdpass/unfdpass.c:193: warning: comparison of distinct pointer types lacks a cast
*** Error code 1
Stop.
>How-To-Repeat:
>Fix:
A patch to sys/sys/socket.h:
--- socket.h.old Thu Feb 11 13:26:00 1999
+++ socket.h Fri Feb 12 12:13:20 1999
@@ -349,7 +349,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) > \
- (mhdr)->msg_control + (mhdr)->msg_controllen) ? \
+ (caddr_t)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
(struct cmsghdr *)NULL : \
(struct cmsghdr *)((caddr_t)(cmsg) + ALIGN((cmsg)->cmsg_len)))
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cjs
State-Changed-When: Fri Feb 12 10:06:46 PST 1999
State-Changed-Why:
I fixed this even before the PR came in, but of course most of the world
has to wait for sup....
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.