diff options
author | marcel <marcel@FreeBSD.org> | 2006-10-19 00:53:35 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-10-19 00:53:35 +0000 |
commit | 82d986f8fdce6ac777e32dc10660fae1ef67e2ae (patch) | |
tree | e16e4d7bda364e076d625cc51e10ed3335d30a94 /sys | |
parent | afa08688856e4b1ab51f86a041020a843ed57916 (diff) | |
download | FreeBSD-src-82d986f8fdce6ac777e32dc10660fae1ef67e2ae.zip FreeBSD-src-82d986f8fdce6ac777e32dc10660fae1ef67e2ae.tar.gz |
Fix previous revision:
o day and mday are the same. No need to subtract 1 from mday.
o Set dow to -1 as clock_ct_to_ts() checks this field and
returns EINVAL on any day of the week but Sunday.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/ia64/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c index b26278c..07950d5 100644 --- a/sys/ia64/ia64/clock.c +++ b/sys/ia64/ia64/clock.c @@ -138,10 +138,10 @@ inittodr(time_t base) ct.sec = tm.tm_sec; ct.min = tm.tm_min; ct.hour = tm.tm_hour; - ct.day = tm.tm_mday -1; + ct.day = tm.tm_mday; ct.mon = tm.tm_mon; ct.year = tm.tm_year; - + ct.dow = -1; clock_ct_to_ts(&ct, &ts); ts.tv_sec += utc_offset(); |