From 7bc244d51238f9837966e41f2798816d6035d579 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 4 Feb 1998 15:17:49 +0000 Subject: [PATCH] Don't hardcode 1900... --- usr.bin/cal/cal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.bin/cal/cal.c b/usr.bin/cal/cal.c index e2138d1c1932..a89d71265feb 100644 --- a/usr.bin/cal/cal.c +++ b/usr.bin/cal/cal.c @@ -1,4 +1,4 @@ -/* $NetBSD: cal.c,v 1.7 1997/10/18 12:24:59 lukem Exp $ */ +/* $NetBSD: cal.c,v 1.8 1998/02/04 15:17:49 christos Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)cal.c 8.4 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: cal.c,v 1.7 1997/10/18 12:24:59 lukem Exp $"); +__RCSID("$NetBSD: cal.c,v 1.8 1998/02/04 15:17:49 christos Exp $"); #endif #endif /* not lint */ @@ -58,6 +58,7 @@ __RCSID("$NetBSD: cal.c,v 1.7 1997/10/18 12:24:59 lukem Exp $"); #include #include #include +#include #include #define THURSDAY 4 /* for reformation */ @@ -174,7 +175,7 @@ main(argc, argv) case 0: (void)time(&now); local_time = localtime(&now); - year = local_time->tm_year + 1900; + year = local_time->tm_year + TM_YEAR_BASE; if (!yflag) month = local_time->tm_mon + 1; break;