Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Fix y2001 problem in the initial read of ...
details: https://anonhg.NetBSD.org/src/rev/e95659ac627a
branches: trunk
changeset: 503032:e95659ac627a
user: leo <leo%NetBSD.org@localhost>
date: Mon Jan 29 08:32:23 2001 +0000
description:
Fix y2001 problem in the initial read of the RTC.
diffstat:
sys/arch/atari/dev/clock.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 52edcdfb1dab -r e95659ac627a sys/arch/atari/dev/clock.c
--- a/sys/arch/atari/dev/clock.c Mon Jan 29 04:23:01 2001 +0000
+++ b/sys/arch/atari/dev/clock.c Mon Jan 29 08:32:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.23 2000/06/07 14:26:11 leo Exp $ */
+/* $NetBSD: clock.c,v 1.24 2001/01/29 08:32:23 leo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -434,7 +434,7 @@
return(0);
if (range_test(clkregs[MC_MONTH], 1, 12))
return(0);
- if(clkregs[MC_YEAR] > (2000 - GEMSTARTOFTIME))
+ if(clkregs[MC_YEAR] > 99)
return(0);
dt.dt_year = clkregs[MC_YEAR] + GEMSTARTOFTIME;
Home |
Main Index |
Thread Index |
Old Index