summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/tsc.c2
-rw-r--r--sys/amd64/isa/clock.c2
-rw-r--r--sys/i386/i386/tsc.c2
-rw-r--r--sys/i386/isa/clock.c2
-rw-r--r--sys/isa/atrtc.c2
5 files changed, 0 insertions, 10 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index 1893b19..13e11a4 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/tsc.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 +
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index 1893b19..13e11a4 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/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 +
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c
index 1893b19..13e11a4 100644
--- a/sys/i386/i386/tsc.c
+++ b/sys/i386/i386/tsc.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 +
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index 1893b19..13e11a4 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 +
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 1893b19..13e11a4 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.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 +
OpenPOWER on IntegriCloud