Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern correct ratecheck() signedness. without this fix, ...



details:   https://anonhg.NetBSD.org/src/rev/e9bba9189f2a
branches:  trunk
changeset: 482602:e9bba9189f2a
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Feb 16 12:36:19 2000 +0000

description:
correct ratecheck() signedness.  without this fix, ratecheck() will never
success again after first success with lasttime=(0,0).

diffstat:

 sys/kern/kern_time.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5e2b5579c274 -r e9bba9189f2a sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Wed Feb 16 11:57:45 2000 +0000
+++ b/sys/kern/kern_time.c      Wed Feb 16 12:36:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.42 2000/02/03 23:04:46 cgd Exp $       */
+/*     $NetBSD: kern_time.c,v 1.43 2000/02/16 12:36:19 itojun Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -639,7 +639,7 @@
        int s, rv = 0;
 
        s = splclock(); 
-       timersub(lasttime, &mono_time, &delta);
+       timersub(&mono_time, lasttime, &delta);
 
        /*
         * check for 0,0 is so that the message will be seen at least once,



Home | Main Index | Thread Index | Old Index