this is supposed to be SECS_PER_DAY.
This commit is contained in:
parent
6a69232e8f
commit
8e5f772231
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: rtc.c,v 1.33 2014/11/17 02:15:48 christos Exp $ */
|
/* $NetBSD: rtc.c,v 1.34 2014/11/20 16:18:29 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 Shin Takemura. All rights reserved.
|
* Copyright (c) 1999 Shin Takemura. All rights reserved.
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.33 2014/11/17 02:15:48 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.34 2014/11/20 16:18:29 christos Exp $");
|
||||||
|
|
||||||
#include "opt_vr41xx.h"
|
#include "opt_vr41xx.h"
|
||||||
|
|
||||||
|
@ -203,10 +203,10 @@ vrrtc_attach(device_t parent, device_t self, void *aux)
|
||||||
* be on Jan 1.
|
* be on Jan 1.
|
||||||
*/
|
*/
|
||||||
for (year = EPOCHYEAR; year < POSIX_BASE_YEAR; year++) {
|
for (year = EPOCHYEAR; year < POSIX_BASE_YEAR; year++) {
|
||||||
sc->sc_epoch += days_per_year(year) * SECS_PER_YEAR;
|
sc->sc_epoch += days_per_year(year) * SECS_PER_DAY;
|
||||||
}
|
}
|
||||||
for (year = POSIX_BASE_YEAR; year < EPOCHYEAR; year++) {
|
for (year = POSIX_BASE_YEAR; year < EPOCHYEAR; year++) {
|
||||||
sc->sc_epoch -= days_per_year(year) * SECS_PER_YEAR;
|
sc->sc_epoch -= days_per_year(year) * SECS_PER_DAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue