diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-09-14 03:06:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-09-14 03:06:42 +0000 |
commit | 8590d888c0ee6d22121874613d4eab745d58b80c (patch) | |
tree | 8a6a43af3e4ef18bda3afa7232d973c1f873579a /sys/kern | |
parent | 8980b4bc0e0964f3f84625f36ff46df354ec85f2 (diff) |
Eliminate the unused retval argument from dogetrusage()
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_resource.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 2110d854f01..27cef51c3c4 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_resource.c,v 1.44 2013/09/14 01:35:00 guenther Exp $ */ +/* $OpenBSD: kern_resource.c,v 1.45 2013/09/14 03:06:41 guenther Exp $ */ /* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */ /*- @@ -421,7 +421,7 @@ calcru(struct tusage *tup, struct timeval *up, struct timeval *sp, TIMESPEC_TO_TIMEVAL(ip, &i); } -int dogetrusage(struct proc *, int, struct rusage *, register_t *); +int dogetrusage(struct proc *, int, struct rusage *); /* ARGSUSED */ int @@ -434,14 +434,14 @@ sys_getrusage(struct proc *p, void *v, register_t *retval) struct rusage ru; int error; - error = dogetrusage(p, SCARG(uap, who), &ru, retval); + error = dogetrusage(p, SCARG(uap, who), &ru); if (error == 0) error = copyout(&ru, SCARG(uap, rusage), sizeof(ru)); return (error); } int -dogetrusage(struct proc *p, int who, struct rusage *rup, register_t *retval) +dogetrusage(struct proc *p, int who, struct rusage *rup) { struct process *pr = p->p_p; struct proc *q; |