Module Name: src
Committed By: jmmv
Date: Tue Jan 18 07:47:17 UTC 2011
Modified Files:
src/sys/arch/x86/x86: platform.c
Log Message:
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@.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/x86/x86/platform.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/platform.c
diff -u src/sys/arch/x86/x86/platform.c:1.10 src/sys/arch/x86/x86/platform.c:1.11
--- src/sys/arch/x86/x86/platform.c:1.10 Mon Jan 17 22:21:25 2011
+++ src/sys/arch/x86/x86/platform.c Tue Jan 18 07:47:16 2011
@@ -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 <[email protected]>
@@ -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;