summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-20 14:52:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-20 14:52:00 +0000
commitb804ea90ea89990f37f2f428d8e8ebb54d53b701 (patch)
tree40a2e6ddd489b8516b6f437805b05ae3f9efae6a /sys/kern/kern_time.c
parent1a702a374be862f6571bc88af23c8d4ff720a125 (diff)
Please GCC 2.8's harsher view of good style
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r--sys/kern/kern_time.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 264ff8a758a..a8eea50fd48 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_time.c,v 1.11 1998/02/08 22:41:35 tholo Exp $ */
+/* $OpenBSD: kern_time.c,v 1.12 1998/02/20 14:51:56 niklas Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
@@ -420,11 +420,13 @@ sys_getitimer(p, v, retval)
* current time and time for the timer to go off.
*/
aitv = p->p_realtimer;
- if (timerisset(&aitv.it_value))
+ if (timerisset(&aitv.it_value)) {
if (timercmp(&aitv.it_value, &time, <))
timerclear(&aitv.it_value);
else
- timersub(&aitv.it_value, &time, &aitv.it_value);
+ timersub(&aitv.it_value, &time,
+ &aitv.it_value);
+ }
} else
aitv = p->p_stats->p_timer[SCARG(uap, which)];
splx(s);