Fix y2001 problem in the initial read of the RTC.

This commit is contained in:
leo 2001-01-29 08:32:23 +00:00
parent 67c95e9ab7
commit dcee338286

View File

@ -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 @@ gettod()
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;