Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common more cast-qual fallout
details: https://anonhg.NetBSD.org/src/rev/a5b8d4496705
branches: trunk
changeset: 581540:a5b8d4496705
user: drochner <drochner%NetBSD.org@localhost>
date: Thu Jun 02 13:03:27 2005 +0000
description:
more cast-qual fallout
diffstat:
sys/compat/linux/common/linux_misc.c | 6 +++---
sys/compat/linux/common/linux_signal.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r f5d160ca8667 -r a5b8d4496705 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Thu Jun 02 12:58:16 2005 +0000
+++ b/sys/compat/linux/common/linux_misc.c Thu Jun 02 13:03:27 2005 +0000
@@ -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 @@
} */ *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 -r f5d160ca8667 -r a5b8d4496705 sys/compat/linux/common/linux_signal.h
--- a/sys/compat/linux/common/linux_signal.h Thu Jun 02 12:58:16 2005 +0000
+++ b/sys/compat/linux/common/linux_signal.h Thu Jun 02 13:03:27 2005 +0000
@@ -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 @@
/* 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
Home |
Main Index |
Thread Index |
Old Index