From: Kurt Zeilenga Date: Tue, 27 Jul 1999 00:34:29 +0000 (+0000) Subject: Remove YEAR_PEDANTIC macro and update comment. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff2a6e10146ada36f4f1903fc5ba9d384f861309;p=openldap Remove YEAR_PEDANTIC macro and update comment. --- diff --git a/clients/ud/print.c b/clients/ud/print.c index cbff8eb8a3..ca6fca2b70 100644 --- a/clients/ud/print.c +++ b/clients/ud/print.c @@ -544,7 +544,6 @@ time2text( char *ldtimestr, int dateonly ) struct tm t; char *p, *timestr, zone, *fmterr = "badly formatted time"; time_t gmttime; - char timebuf[32]; int ndigits; if (strlen( ldtimestr ) < 12 ) { @@ -611,7 +610,7 @@ int dmsize[] = { /* * Y2K YEAR */ - /* per POSIX tm_year should be offset by 1900 */ + /* per STDC & POSIX tm_year *should* be offset by 1900 */ #define YEAR_POSIX(y) ((y) + 1900) /* @@ -619,15 +618,6 @@ int dmsize[] = { */ #define YEAR_CAREFUL(y) ((y) < 1900 ? (y) + 1900 : (y)) - /* - ** if year is < 1990 and < 70 must be offset by 2000 as Unix epoch - ** started in 1970. if year is < 1990 but >= 70, offset by 1900. - ** if year is >= 1900, it must be the real year. - */ -#define YEAR_PEDANTIC(y) ((y) < 1900 \ - ? ((y) < 70 ? (y) + 2000 ? (y) + 1900) \ - : (y)) - #define YEAR(y) YEAR_CAREFUL(y)