From b04c0295788b04a813b4770ee7ad1ed40f42a703 Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Fri, 14 Jan 2000 09:10:25 +0000 Subject: I could be wrong, but I doubt the world is going to end this year. Let's give us at least through 2038 (which is the end of time, anyway). :-) --- sys/arch/hp300/hp300/clock.c | 4 ++-- sys/arch/hp300/stand/uboot/clock.c | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sys/arch/hp300/hp300/clock.c b/sys/arch/hp300/hp300/clock.c index ebc4609b7e4..2db918e4e2f 100644 --- a/sys/arch/hp300/hp300/clock.c +++ b/sys/arch/hp300/hp300/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.5 1997/07/06 08:01:58 downsj Exp $ */ +/* $OpenBSD: clock.c,v 1.6 2000/01/14 09:09:47 downsj Exp $ */ /* $NetBSD: clock.c,v 1.20 1997/04/27 20:43:38 thorpej Exp $ */ /* @@ -481,7 +481,7 @@ bbc_to_gmt(timbuf) range_test(hour, 0, 23); range_test(day, 1, 31); range_test(month, 1, 12); - range_test(year, STARTOFTIME, 2000); + range_test(year, STARTOFTIME, 2038); /* 2038 is the end of time. */ tmp = 0; diff --git a/sys/arch/hp300/stand/uboot/clock.c b/sys/arch/hp300/stand/uboot/clock.c index d635aaf2b65..6e1413eac22 100644 --- a/sys/arch/hp300/stand/uboot/clock.c +++ b/sys/arch/hp300/stand/uboot/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.1 1997/07/14 08:14:55 downsj Exp $ */ +/* $OpenBSD: clock.c,v 1.2 2000/01/14 09:10:24 downsj Exp $ */ /* $NetBSD: clock.c,v 1.3 1995/02/20 00:12:09 mycroft Exp $ */ /* @@ -55,9 +55,11 @@ static int month_days[12] = { }; u_char bbc_registers[13]; +void read_bbc(); u_char read_bbc_reg(); struct hil_dev *bbcaddr = BBCADDR; +u_long getsecs() { static int bbcinited = 0; @@ -71,7 +73,7 @@ getsecs() return(timbuf); } - +int bbc_to_gmt(timbuf) u_long *timbuf; { @@ -95,7 +97,7 @@ bbc_to_gmt(timbuf) range_test(hour, 0, 23); range_test(day, 1, 31); range_test(month, 1, 12); - range_test(year, STARTOFTIME, 2000); + range_test(year, STARTOFTIME, 2038); /* 2038 is the end of time. */ tmp = 0; @@ -114,6 +116,7 @@ bbc_to_gmt(timbuf) return(1); } +void read_bbc() { register int i, read_okay; -- cgit v1.2.3