summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-02 09:23:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-02 09:23:20 +0000
commit02de90d483c5871fcd62935db8e3a57e115e4c9f (patch)
tree1a1e07498a5cfe24b1ef2e10eaa44282bc93330b
parentc85789739183484be699a24236176876a8ad51f9 (diff)
unsigned usec can go negative, should be added in as is; netbsd pr#2585; Juergen.Fluk@lrz.tu-muenchen.de
-rw-r--r--sys/kern/kern_resource.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 450cc79de50..60a27f2a6e1 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_resource.c,v 1.4 1996/06/20 10:54:36 deraadt Exp $ */
+/* $OpenBSD: kern_resource.c,v 1.5 1996/07/02 09:23:19 deraadt Exp $ */
/* $NetBSD: kern_resource.c,v 1.34.4.1 1996/06/13 23:31:14 jtc Exp $ */
/*-
@@ -334,7 +334,8 @@ calcru(p, up, sp, ip)
register struct timeval *ip;
{
register u_quad_t u, st, ut, it, tot;
- register u_long sec, usec;
+ register u_long sec;
+ register long usec;
register int s;
struct timeval tv;