diff options
| author | drochner <drochner@NetBSD.org> | 2005-06-02 13:03:27 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2005-06-02 13:03:27 +0000 |
| commit | c2a5fd01916d512a281cd7be5f98ca99d6e3224b (patch) | |
| tree | 1c1cfa24ce805edb06c2b638d17e045effc6610d /sys/compat/linux/common/linux_misc.c | |
| parent | c4f68c0d959cc92ba85137f6a02cf3e4013f1533 (diff) | |
more cast-qual fallout
Diffstat (limited to 'sys/compat/linux/common/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/common/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 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)); } |
