Loading...
--- Libc/Libc-1506.40.4/stdtime/FreeBSD/strftime.c
+++ Libc/Libc-825.26/stdtime/FreeBSD/strftime.c
@@ -15,16 +15,15 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunreachable-code"
-
-#if 0
+#ifndef lint
+#ifndef NOID
static const char elsieid[] = "@(#)strftime.3 8.3";
/*
** Based on the UCB version with the ID appearing below.
** This is ANSIish only when "multibyte character == plain character".
*/
-#endif
+#endif /* !defined NOID */
+#endif /* !defined lint */
#include "xlocale_private.h"
@@ -54,7 +53,7 @@
int *, struct lc_time_T *, locale_t);
extern char * tzname[];
-extern long __darwin_altzone; /* DST timezone offset */
+__private_extern__ long __darwin_altzone; /* DST timezone offset */
#define altzone __darwin_altzone
__private_extern__ long _st_get_timezone(void);
@@ -73,7 +72,7 @@
#define PAD_ZERO 3
#ifndef BUILDING_VARIANT
-static const char * const fmt_padding[][4] = {
+static const char* fmt_padding[][4] = {
/* DEFAULT, LESS, SPACE, ZERO */
#define PAD_FMT_MONTHDAY 0
#define PAD_FMT_HMS 0
@@ -660,4 +659,3 @@
return pt;
}
#endif /* !BUILDING_VARIANT */
-#pragma clang diagnostic pop