From b5dbf4d424efdbe54daa939aae80d69c4244c023 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 13:51:10 -0400 Subject: use idiomatic weak alias approach for defining asctime_r get rid of a gratuitous translation unit and call frame between asctime_r and the actual implementation of the function. this is the way gmtime_r and localtime_r are already done. --- src/time/asctime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/time/asctime.c') diff --git a/src/time/asctime.c b/src/time/asctime.c index 3102eb87..57d15fe0 100644 --- a/src/time/asctime.c +++ b/src/time/asctime.c @@ -1,9 +1,9 @@ #include -char *__asctime(const struct tm *, char *); +char *__asctime_r(const struct tm *, char *); char *asctime(const struct tm *tm) { static char buf[26]; - return __asctime(tm, buf); + return __asctime_r(tm, buf); } -- cgit v1.2.1