diff options
author | 2004-09-16 09:24:52 +0000 | |
---|---|---|
committer | 2004-09-16 09:24:52 +0000 | |
commit | 0a6231a45423ee981b27d5a1ba2cf43519aea49a (patch) | |
tree | c9c0afb75bc87358ae43a0b2f401bda72b0bf00a | |
parent | Day of week count 1-7 (diff) | |
download | wireguard-openbsd-0a6231a45423ee981b27d5a1ba2cf43519aea49a.tar.xz wireguard-openbsd-0a6231a45423ee981b27d5a1ba2cf43519aea49a.zip |
Don't adjust month from tod clock. clock.c does
-rw-r--r-- | sys/arch/sgi/sgi/clock_md.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/sgi/clock_md.c b/sys/arch/sgi/sgi/clock_md.c index 48082b3e288..f1b923b8f02 100644 --- a/sys/arch/sgi/sgi/clock_md.c +++ b/sys/arch/sgi/sgi/clock_md.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock_md.c,v 1.5 2004/08/11 15:13:35 deraadt Exp $ */ +/* $OpenBSD: clock_md.c,v 1.6 2004/09/16 09:24:52 pefo Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -107,7 +107,7 @@ ds1687_get(sc, base, ct) ct->min = FROMBCD(bus_space_read_1(clk_t, clk_h, 2)); ct->hour = FROMBCD(bus_space_read_1(clk_t, clk_h, 4)); ct->day = FROMBCD(bus_space_read_1(clk_t, clk_h, 7)); - ct->mon = FROMBCD(bus_space_read_1(clk_t, clk_h, 8)) - 1; + ct->mon = FROMBCD(bus_space_read_1(clk_t, clk_h, 8)); ct->year = FROMBCD(bus_space_read_1(clk_t, clk_h, 9)); century = FROMBCD(bus_space_read_1(clk_t, clk_h, 72)); @@ -141,7 +141,7 @@ ds1687_set(sc, ct) bus_space_write_1(clk_t, clk_h, 4, TOBCD(ct->hour)); bus_space_write_1(clk_t, clk_h, 6, TOBCD(ct->dow)); bus_space_write_1(clk_t, clk_h, 7, TOBCD(ct->day)); - bus_space_write_1(clk_t, clk_h, 8, TOBCD(ct->mon + 1)); + bus_space_write_1(clk_t, clk_h, 8, TOBCD(ct->mon)); bus_space_write_1(clk_t, clk_h, 9, TOBCD(year)); bus_space_write_1(clk_t, clk_h, 72, TOBCD(century)); |