Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/dev Fix resettod() from Richard Earnshaw <rea...



details:   https://anonhg.NetBSD.org/src/rev/b7e71aed446a
branches:  trunk
changeset: 482664:b7e71aed446a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 19 00:27:16 2000 +0000

description:
Fix resettod() from Richard Earnshaw <rearnsha%arm.com@localhost>

diffstat:

 sys/arch/arm32/dev/todclock.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 90c885f2f20e -r b7e71aed446a sys/arch/arm32/dev/todclock.c
--- a/sys/arch/arm32/dev/todclock.c     Sat Feb 19 00:17:59 2000 +0000
+++ b/sys/arch/arm32/dev/todclock.c     Sat Feb 19 00:27:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: todclock.c,v 1.6 2000/02/13 05:00:57 mark Exp $        */
+/*     $NetBSD: todclock.c,v 1.7 2000/02/19 00:27:16 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -222,7 +222,7 @@
                month[1]=29;
        else
                month[1]=28;
-       while ((sec/SECPERDAY) > month[mon]) {
+       while (sec >= month[mon]*SECPERDAY) {
                sec -= month[mon]*SECPERDAY;
                mon++;
        }



Home | Main Index | Thread Index | Old Index