Subject: const in sunos_misc.c
To: NetBSD Sparc Users <port-sparc@NetBSD.ORG>
From: Curt Sampson <cjs@portal.ca>
List: port-sparc
Date: 12/28/1996 13:41:40
Doing a build from Decmember 25th sources, I get the following
when trying to compile src/sys/lkm/compat/sunos/sunos_misc.c:

gnostic $ make
cc -O -DCOMPAT_SUNOS  -D_KERNEL -D_LKM -I. -I/usr1/NetBSD/checkouts/pyrrhon/src/sys/lkm/compat/sunos -I/usr1/NetBSD/checkouts/pyrrhon/src/sys -I/usr1/NetBSD/checkouts/pyrrhon/src/sys/arch -Werror  -c /usr1/NetBSD/checkouts/pyrrhon/src/sys/compat/sunos/sun
os_misc.c
cc1: warnings being treated as errors
/usr1/NetBSD/checkouts/pyrrhon/src/sys/compat/sunos/sunos_misc.c: In function `sunos_sys_stime':
/usr1/NetBSD/checkouts/pyrrhon/src/sys/compat/sunos/sunos_misc.c:125: warning: passing arg 2 of `copyout' discards `const' from pointer target type
*** Error code 1

I notice that this line is the same in -current as in my sources. The
offending line is:

	error = copyout(&tv, SCARG(&ap, tv), sizeof(struct timeval));

I've poked around a bit, but unfortunately I don't have enough
wizardry to find out exactly what's going on here. Any thoughts?

cjs

Curt Sampson    cjs@portal.ca		Info at http://www.portal.ca/
Internet Portal Services, Inc.	
Vancouver, BC   (604) 257-9400		De gustibus, aut bene aut nihil.