Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Ammend previous to be more accurate in plat...
details: https://anonhg.NetBSD.org/src/rev/66aab578dd4d
branches: trunk
changeset: 760985:66aab578dd4d
user: jmmv <jmmv%NetBSD.org@localhost>
date: Tue Jan 18 07:47:16 2011 +0000
description:
Ammend previous to be more accurate in platform_add_date by using the epoch:
* Years in the [70,99] range are considered to be in 1900.
* Years in the [0,69] range are considered to be in 2000.
I don't think we may have hit any machine where the previous numbers were
a problem, but these seem to be the "correct" ones.
>From christos@.
diffstat:
sys/arch/x86/x86/platform.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9cc735318ec0 -r 66aab578dd4d sys/arch/x86/x86/platform.c
--- a/sys/arch/x86/x86/platform.c Tue Jan 18 02:25:42 2011 +0000
+++ b/sys/arch/x86/x86/platform.c Tue Jan 18 07:47:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: platform.c,v 1.10 2011/01/17 22:21:25 jmmv Exp $ */
+/* $NetBSD: platform.c,v 1.11 2011/01/18 07:47:16 jmmv Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "isa.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: platform.c,v 1.10 2011/01/17 22:21:25 jmmv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: platform.c,v 1.11 2011/01/18 07:47:16 jmmv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -167,7 +167,7 @@
return;
if (year > 9999)
return;
- if (year < 90)
+ if (year < 70)
year += 2000;
else if (year < 100)
year += 1900;
Home |
Main Index |
Thread Index |
Old Index