Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/hpux Appease gcc -Wcast-qual.
details: https://anonhg.NetBSD.org/src/rev/a6dc3dc44e41
branches: trunk
changeset: 581706:a6dc3dc44e41
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 23:03:59 2005 +0000
description:
Appease gcc -Wcast-qual.
diffstat:
sys/compat/hpux/hpux_compat.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 07f30b615a91 -r a6dc3dc44e41 sys/compat/hpux/hpux_compat.c
--- a/sys/compat/hpux/hpux_compat.c Fri Jun 03 22:27:06 2005 +0000
+++ b/sys/compat/hpux/hpux_compat.c Fri Jun 03 23:03:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpux_compat.c,v 1.71 2005/02/26 23:10:18 perry Exp $ */
+/* $NetBSD: hpux_compat.c,v 1.72 2005/06/03 23:03:59 tsutsui Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.71 2005/02/26 23:10:18 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.72 2005/06/03 23:03:59 tsutsui Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1354,7 +1354,7 @@
syscallarg(struct tms *) tms;
} */ *uap = v;
struct proc *p = l->l_proc;
- struct timeval ru, rs;
+ struct timeval ru, rs, tv;
struct tms atms;
int error;
@@ -1365,9 +1365,11 @@
atms.tms_cstime = hpux_scale(&p->p_stats->p_cru.ru_stime);
error = copyout((caddr_t)&atms, (caddr_t)SCARG(uap, tms),
sizeof (atms));
- if (error == 0)
- *(time_t *)retval = hpux_scale((struct timeval *)&time) -
+ if (error == 0) {
+ tv = time;
+ *(time_t *)retval = hpux_scale(&tv) -
hpux_scale(&boottime);
+ }
return (error);
}
Home |
Main Index |
Thread Index |
Old Index