Subject: CVS commit: src/sys/dev
To: None <source-changes@NetBSD.org>
From: Ben Harris <bjh21@netbsd.org>
List: source-changes
Date: 12/29/2004 20:55:57
Module Name:	src
Committed By:	bjh21
Date:		Wed Dec 29 20:55:57 UTC 2004

Modified Files:
	src/sys/dev: clock_subr.c

Log Message:
In clock_ymdhms_to_secs(), rather than returning rubbish when presented with
a year before 1970 or a date beyond the time_t rollover, return -1 so callers
can detect it.  Callers which expect the function not to fail just get a
different kind of rubbish from before.


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

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