Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Do not range_test() unless DIAGNOSTIC.
details: https://anonhg.NetBSD.org/src/rev/c8d086bc79f4
branches: trunk
changeset: 501930:c8d086bc79f4
user: minoura <minoura%NetBSD.org@localhost>
date: Tue Jan 09 11:38:32 2001 +0000
description:
Do not range_test() unless DIAGNOSTIC.
Suggested by Tetsuya Isaki <isaki%v6.ipc.hiroshima-u.ac.jp@localhost>.
diffstat:
sys/arch/x68k/dev/rtclock.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r c6a9b6c694fb -r c8d086bc79f4 sys/arch/x68k/dev/rtclock.c
--- a/sys/arch/x68k/dev/rtclock.c Tue Jan 09 11:38:27 2001 +0000
+++ b/sys/arch/x68k/dev/rtclock.c Tue Jan 09 11:38:32 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtclock.c,v 1.6 2001/01/04 06:45:18 minoura Exp $ */
+/* $NetBSD: rtclock.c,v 1.7 2001/01/09 11:38:32 minoura Exp $ */
/*
* Copyright 1993, 1994 Masaru Oki
@@ -158,10 +158,12 @@
/* let it run again.. */
RTC_WRITE(RTC_MODE, RTC_FREE_CLOCK);
+#ifdef DIAGNOSTIC
range_test(hour, 0, 23);
range_test(day, 1, 31);
range_test(month, 1, 12);
range_test(year, STARTOFTIME, 2079);
+#endif
tmp = 0;
Home |
Main Index |
Thread Index |
Old Index