Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/arch/hp300/stand/common Pullup rev 1.5 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/dd63c8812a64
branches:  netbsd-2-0
changeset: 560364:dd63c8812a64
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sun Apr 11 02:55:14 2004 +0000

description:
Pullup rev 1.5 (requested by tsutsui in ticket #115)

Fix yet another y2k+1 bug.

diffstat:

 sys/arch/hp300/stand/common/clock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 889341c51e3b -r dd63c8812a64 sys/arch/hp300/stand/common/clock.c
--- a/sys/arch/hp300/stand/common/clock.c       Sun Apr 11 02:42:25 2004 +0000
+++ b/sys/arch/hp300/stand/common/clock.c       Sun Apr 11 02:55:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.4 2003/11/14 16:52:40 tsutsui Exp $        */
+/*     $NetBSD: clock.c,v 1.4.2.1 2004/04/11 02:55:14 jmc Exp $        */
 
 /*
  * Copyright (c) 1982, 1990, 1993
@@ -148,11 +148,12 @@
        day   = bbc_to_decimal(8, 7);
        month = bbc_to_decimal(10, 9);
        year  = bbc_to_decimal(12, 11) + 1900;
+       if (year < STARTOFTIME)
+               year += 100;
 
        range_test(hour, 0, 23);
        range_test(day, 1, 31);
        range_test(month, 1, 12);
-       range_test(year, STARTOFTIME, 2000);
 
        tmp = 0;
 



Home | Main Index | Thread Index | Old Index