Subject: 1.5_ALPHA build error
To: None <port-pmax@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-pmax
Date: 07/20/2000 13:50:52
I've got the following errors on netbsd-1-5 branch:
---
cc -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Wno-uninitialized -Wno-main -G 0 -mno-abicalls \
-mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 \
-DDIAGNOSTIC -DLKM -DHZ="0x100" -DMAXUSERS=64 -D_KERNEL -Dpmax -c \
../../../../compat/ultrix/ultrix_misc.c
cc1: warnings being treated as errors
../../../../compat/ultrix/ultrix_misc.c: In function `ultrix_sys_uname':
../../../../compat/ultrix/ultrix_misc.c:457: warning: assignment discards
`const' from pointer target type
*** Error code 1
Stop.
---
'version' in sys/sys/systm.h rev 1.111.2.2 is now const'ified.
BTW, ultrix_misc.c contains some bogus white spaces which should be
replaced by TABs...
Index: ultrix_misc.c
===================================================================
RCS file: /cvs/cvsroot/syssrc/sys/compat/ultrix/ultrix_misc.c,v
retrieving revision 1.57
diff -u -r1.57 ultrix_misc.c
--- ultrix_misc.c 2000/04/28 12:52:52 1.57
+++ ultrix_misc.c 2000/07/20 04:45:03
@@ -445,7 +445,8 @@
{
struct ultrix_sys_uname_args *uap = v;
struct ultrix_utsname sut;
- char *cp, *dp, *ep;
+ const char *cp;
+ char *dp, *ep;
memset(&sut, 0, sizeof(sut));
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp