Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/vr this is supposed to be SECS_PER_DAY.
details: https://anonhg.NetBSD.org/src/rev/fdee46e7a50d
branches: trunk
changeset: 333880:fdee46e7a50d
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 20 16:18:29 2014 +0000
description:
this is supposed to be SECS_PER_DAY.
diffstat:
sys/arch/hpcmips/vr/rtc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r ba6cce5ce8fd -r fdee46e7a50d sys/arch/hpcmips/vr/rtc.c
--- a/sys/arch/hpcmips/vr/rtc.c Thu Nov 20 15:50:25 2014 +0000
+++ b/sys/arch/hpcmips/vr/rtc.c Thu Nov 20 16:18:29 2014 +0000
@@ -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.
@@ -36,7 +36,7 @@
*/
#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"
@@ -203,10 +203,10 @@
* be on Jan 1.
*/
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++) {
- sc->sc_epoch -= days_per_year(year) * SECS_PER_YEAR;
+ sc->sc_epoch -= days_per_year(year) * SECS_PER_DAY;
}
/*
Home |
Main Index |
Thread Index |
Old Index