aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/clock.c')
-rw-r--r--sys/i386/isa/clock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index 1893b197009b..13e11a4315a2 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.c
@@ -858,7 +858,6 @@ void
inittodr(time_t base)
{
unsigned long sec, days;
- int yd;
int year, month;
int y, m, s;
struct timespec ts;
@@ -901,7 +900,6 @@ inittodr(time_t base)
if ((month > 2) && LEAPYEAR(year))
days ++;
days += readrtc(RTC_DAY) - 1;
- yd = days;
for (y = 1970; y < year; y++)
days += DAYSPERYEAR + LEAPYEAR(y);
sec = ((( days * 24 +