summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/strftime.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-05-06 15:49:45 +0000
committertedu <tedu@openbsd.org>2014-05-06 15:49:45 +0000
commitdac9fc1936c08659c3b62bfcfafd2e9e57bd6b99 (patch)
tree9c687c9b91ecab77bb5033d5f59ee07b407706f2 /lib/libc/time/strftime.c
parentreallocarray for things which are arrays. ok deraadt (diff)
downloadwireguard-openbsd-dac9fc1936c08659c3b62bfcfafd2e9e57bd6b99.tar.xz
wireguard-openbsd-dac9fc1936c08659c3b62bfcfafd2e9e57bd6b99.zip
enh@google reported a warning in crufty y2k code. just delete it.
ok deraadt stsp
Diffstat (limited to 'lib/libc/time/strftime.c')
-rw-r--r--lib/libc/time/strftime.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c
index 3bcee1fc7dd..dbf320ebc52 100644
--- a/lib/libc/time/strftime.c
+++ b/lib/libc/time/strftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strftime.c,v 1.21 2012/09/13 11:14:20 millert Exp $ */
+/* $OpenBSD: strftime.c,v 1.22 2014/05/06 15:49:45 tedu Exp $ */
#include "private.h"
/*
@@ -111,10 +111,6 @@ static char * _yconv(int, int, int, int, char *, const char *);
extern char * tzname[];
-#ifndef YEAR_2000_NAME
-#define YEAR_2000_NAME "CHECK_STRFTIME_FORMATS_FOR_TWO_DIGIT_YEARS"
-#endif /* !defined YEAR_2000_NAME */
-
#define IN_NONE 0
#define IN_SOME 1
#define IN_THIS 2
@@ -136,22 +132,6 @@ const struct tm * const t;
#endif /* defined LOCALE_HOME */
warn = IN_NONE;
p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn);
-#ifndef NO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU
- if (warn != IN_NONE && getenv(YEAR_2000_NAME) != NULL) {
- (void) fprintf(stderr, "\n");
- if (format == NULL)
- (void) fprintf(stderr, "NULL strftime format ");
- else (void) fprintf(stderr, "strftime format \"%s\" ",
- format);
- (void) fprintf(stderr, "yields only two digits of years in ");
- if (warn == IN_SOME)
- (void) fprintf(stderr, "some locales");
- else if (warn == IN_THIS)
- (void) fprintf(stderr, "the current locale");
- else (void) fprintf(stderr, "all locales");
- (void) fprintf(stderr, "\n");
- }
-#endif /* !defined NO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU */
if (p == s + maxsize) {
if (maxsize > 0)
s[maxsize - 1] = '\0';