summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-10-19 00:53:35 +0000
committermarcel <marcel@FreeBSD.org>2006-10-19 00:53:35 +0000
commit82d986f8fdce6ac777e32dc10660fae1ef67e2ae (patch)
treee16e4d7bda364e076d625cc51e10ed3335d30a94 /sys/ia64
parentafa08688856e4b1ab51f86a041020a843ed57916 (diff)
downloadFreeBSD-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/ia64')
-rw-r--r--sys/ia64/ia64/clock.c4
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();
OpenPOWER on IntegriCloud