Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/tx Fix tx39clock_get bug.



details:   https://anonhg.NetBSD.org/src/rev/d59c32c1d052
branches:  trunk
changeset: 479864:d59c32c1d052
user:      uch <uch%NetBSD.org@localhost>
date:      Thu Dec 23 16:58:48 1999 +0000

description:
Fix tx39clock_get bug.

diffstat:

 sys/arch/hpcmips/tx/tx39clock.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5f890773fd1c -r d59c32c1d052 sys/arch/hpcmips/tx/tx39clock.c
--- a/sys/arch/hpcmips/tx/tx39clock.c   Thu Dec 23 16:58:07 1999 +0000
+++ b/sys/arch/hpcmips/tx/tx39clock.c   Thu Dec 23 16:58:48 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tx39clock.c,v 1.3 1999/12/22 15:35:35 uch Exp $ */
+/*     $NetBSD: tx39clock.c,v 1.4 1999/12/23 16:58:48 uch Exp $ */
 
 /*
  * Copyright (c) 1999, by UCHIYAMA Yasushi
@@ -303,7 +303,7 @@
                dt.dt_min = sc->sc_epoch.min;
                dt.dt_sec = sc->sc_epoch.sec;
                dt.dt_wday = sc->sc_epoch.dow;
-               sec += clock_ymdhms_to_secs(&dt);
+               base = sec + clock_ymdhms_to_secs(&dt);
        }
 
        clock_secs_to_ymdhms(base, &dt);



Home | Main Index | Thread Index | Old Index