more cast-qual fallout
This commit is contained in:
parent
c4f68c0d95
commit
c2a5fd0191
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_misc.c,v 1.138 2005/05/29 22:08:16 christos Exp $ */
|
||||
/* $NetBSD: linux_misc.c,v 1.139 2005/06/02 13:03:27 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.138 2005/05/29 22:08:16 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.139 2005/06/02 13:03:27 drochner Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1498,7 +1498,7 @@ linux_sys_swapon(l, v, retval)
|
||||
} */ *uap = v;
|
||||
|
||||
SCARG(&ua, cmd) = SWAP_ON;
|
||||
SCARG(&ua, arg) = (void *)SCARG(uap, name);
|
||||
SCARG(&ua, arg) = (void *)__UNCONST(SCARG(uap, name));
|
||||
SCARG(&ua, misc) = 0; /* priority */
|
||||
return (sys_swapctl(l, &ua, retval));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.22 2005/05/03 16:26:29 manu Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.23 2005/06/02 13:03:27 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -76,7 +76,7 @@ void native_to_linux_old_extra_sigset __P((linux_old_sigset_t *,
|
||||
|
||||
/* XXXmanu (const linux_sigset_t *)(void *) temporary hack to get it building */
|
||||
#define linux_old_to_native_sigset(x,y) \
|
||||
linux_to_native_sigset(x, (const linux_sigset_t *)(void *)y)
|
||||
linux_to_native_sigset(x, (const linux_sigset_t *)(const void *)y)
|
||||
#define native_to_linux_old_sigset(x,y) \
|
||||
native_to_linux_sigset((linux_sigset_t *)(void *)x, y)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user