summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2005-06-02 13:03:27 +0000
committerdrochner <drochner@NetBSD.org>2005-06-02 13:03:27 +0000
commitc2a5fd01916d512a281cd7be5f98ca99d6e3224b (patch)
tree1c1cfa24ce805edb06c2b638d17e045effc6610d /sys/compat/linux/common
parentc4f68c0d959cc92ba85137f6a02cf3e4013f1533 (diff)
more cast-qual fallout
Diffstat (limited to 'sys/compat/linux/common')
-rw-r--r--sys/compat/linux/common/linux_misc.c6
-rw-r--r--sys/compat/linux/common/linux_signal.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c
index ff66e6c6233..1ff249d4b80 100644
--- a/sys/compat/linux/common/linux_misc.c
+++ b/sys/compat/linux/common/linux_misc.c
@@ -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));
}
diff --git a/sys/compat/linux/common/linux_signal.h b/sys/compat/linux/common/linux_signal.h
index f25517640bd..63191185031 100644
--- a/sys/compat/linux/common/linux_signal.h
+++ b/sys/compat/linux/common/linux_signal.h
@@ -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