Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Garrett D'Amore <gdamore@netbsd.org>
List: source-changes
Date: 09/07/2006 04:51:42
Module Name:	src
Committed By:	gdamore
Date:		Thu Sep  7 04:51:42 UTC 2006

Modified Files:
	src/sys/kern: kern_todr.c

Log Message:
Eliminate the 2038 year check, because clock_ymdhms_to_sec already performs
that check.  So instead, we test to make sure we have a non-negative second
after the conversion.

While here, we also add a check to round the second counter up when setting
time if we are more than half-way into the second.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/sys/kern/kern_todr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.