From 56c7fa6704da8e2d272cd64ea3574bedeaf9ef5b Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Tue, 9 Mar 1999 23:06:13 +0000 Subject: Back out rev 1.7. PCTS 151-2 still passes, and mktime() now correctly returns -1 for calendar times that cannot be represented. --- lib/libc/time/localtime.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/libc/time/localtime.c') diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index 4f35f32ebcc..7ce35ed6ac1 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -5,7 +5,7 @@ #if defined(LIBC_SCCS) && !defined(lint) && !defined(NOID) static char elsieid[] = "@(#)localtime.c 7.66"; -static char rcsid[] = "$OpenBSD: localtime.c,v 1.16 1999/02/02 00:22:42 d Exp $"; +static char rcsid[] = "$OpenBSD: localtime.c,v 1.17 1999/03/09 23:06:12 pjanzen Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -1433,14 +1433,7 @@ const int do_norm_secs; dir = tmcomp(&mytm, &yourtm); if (dir != 0) { if (bits-- < 0) -#ifdef PCTS - { - t += 2; - break; - } -#else return WRONG; -#endif if (bits < 0) --t; /* may be needed if new t is minimal */ else if (dir > 0) -- cgit v1.2.3