Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/irix Consistently constify
details: https://anonhg.NetBSD.org/src/rev/b6c72e4bcd73
branches: trunk
changeset: 581676:b6c72e4bcd73
user: martin <martin%NetBSD.org@localhost>
date: Fri Jun 03 18:53:50 2005 +0000
description:
Consistently constify
diffstat:
sys/compat/irix/irix_resource.c | 14 ++++----------
sys/compat/irix/irix_signal.c | 10 +++++-----
2 files changed, 9 insertions(+), 15 deletions(-)
diffs (101 lines):
diff -r 900fd772d161 -r b6c72e4bcd73 sys/compat/irix/irix_resource.c
--- a/sys/compat/irix/irix_resource.c Fri Jun 03 18:52:52 2005 +0000
+++ b/sys/compat/irix/irix_resource.c Fri Jun 03 18:53:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_resource.c,v 1.4 2005/02/26 23:10:18 perry Exp $ */
+/* $NetBSD: irix_resource.c,v 1.5 2005/06/03 18:53:50 martin Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_resource.c,v 1.4 2005/02/26 23:10:18 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_resource.c,v 1.5 2005/06/03 18:53:50 martin Exp $");
#include <sys/types.h>
#include <sys/signal.h>
@@ -188,7 +188,7 @@
{
struct irix_sys_getrlimit_args /* {
syscallarg(int) resource;
- syscallarg(struct irix_rlimit *) rlp;
+ syscallarg(const struct irix_rlimit *) rlp;
} */ *uap = v;
struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p, 0);
@@ -213,9 +213,6 @@
else
rlp.rlim_max = irlp.rlim_cur;
- if ((error = copyout(&rlp, (void *)SCARG(&cup, rlp), sizeof(rlp))) != 0)
- return error;
-
if ((error = sys_setrlimit(l, &cup, retval)) != 0)
return error;
@@ -230,7 +227,7 @@
{
struct irix_sys_getrlimit_args /* {
syscallarg(int) resource;
- syscallarg(struct irix_rlimit64 *) rlp;
+ syscallarg(const struct irix_rlimit64 *) rlp;
} */ *uap = v;
struct proc *p = l->l_proc;
caddr_t sg = stackgap_init(p, 0);
@@ -255,9 +252,6 @@
else
rlp.rlim_max = irlp.rlim_cur;
- if ((error = copyout(&rlp, (void *)SCARG(&cup, rlp), sizeof(rlp))) != 0)
- return error;
-
if ((error = sys_setrlimit(l, &cup, retval)) != 0)
return error;
diff -r 900fd772d161 -r b6c72e4bcd73 sys/compat/irix/irix_signal.c
--- a/sys/compat/irix/irix_signal.c Fri Jun 03 18:52:52 2005 +0000
+++ b/sys/compat/irix/irix_signal.c Fri Jun 03 18:53:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_signal.c,v 1.32 2005/02/26 23:10:18 perry Exp $ */
+/* $NetBSD: irix_signal.c,v 1.33 2005/06/03 18:53:50 martin Exp $ */
/*-
* Copyright (c) 1994, 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.32 2005/02/26 23:10:18 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.33 2005/06/03 18:53:50 martin Exp $");
#include <sys/types.h>
#include <sys/signal.h>
@@ -927,7 +927,7 @@
{
struct irix_sys_sigprocmask_args /* {
syscallarg(int) how;
- syscallarg(irix_sigset_t *) set;
+ syscallarg(const irix_sigset_t *) set;
syscallarg(irix_sigset_t *) oset;
} */ *uap = v;
struct proc *p = l->l_proc;
@@ -938,7 +938,7 @@
caddr_t sg;
SCARG(&cup, how) = SCARG(uap, how);
- SCARG(&cup, set) = (svr4_sigset_t *)SCARG(uap, set);
+ SCARG(&cup, set) = (const svr4_sigset_t *)SCARG(uap, set);
SCARG(&cup, oset) = (svr4_sigset_t *)SCARG(uap, oset);
if (SCARG(uap, how) == IRIX_SIG_SETMASK32) {
@@ -952,7 +952,7 @@
/* preserve the higher 32 bits */
niss.bits[3] = oiss.bits[3];
- if ((error = copyout(&niss, (void *)SCARG(&cup, set),
+ if ((error = copyout(&niss, SCARG(&cup, oset),
sizeof(niss))) != 0)
return error;
Home |
Main Index |
Thread Index |
Old Index