diff options
author | 1999-03-09 23:06:12 +0000 | |
---|---|---|
committer | 1999-03-09 23:06:12 +0000 | |
commit | f01f310ef720d89ccc382a58877fd3cb4171f73f (patch) | |
tree | 7c89c766ca765f28b96005f1a9b643c4a439a33c /lib/libc/time | |
parent | POSIX says: (diff) | |
download | wireguard-openbsd-f01f310ef720d89ccc382a58877fd3cb4171f73f.tar.xz wireguard-openbsd-f01f310ef720d89ccc382a58877fd3cb4171f73f.zip |
Back out rev 1.7. PCTS 151-2 still passes, and mktime() now correctly returns
-1 for calendar times that cannot be represented.
Diffstat (limited to 'lib/libc/time')
-rw-r--r-- | lib/libc/time/localtime.c | 9 |
1 files changed, 1 insertions, 8 deletions
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) |