diff options
author | ache <ache@FreeBSD.org> | 1998-04-25 00:00:57 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-04-25 00:00:57 +0000 |
commit | f02dfd0f986b431c720e16cd4b7647118abe09a3 (patch) | |
tree | ad88ee1402f74397cbf5bda4cad632828f948571 /lib/libc/stdtime/asctime.c | |
parent | fc8308de88c0682761754301e60f4389dd73e87b (diff) | |
download | FreeBSD-src-f02dfd0f986b431c720e16cd4b7647118abe09a3.zip FreeBSD-src-f02dfd0f986b431c720e16cd4b7647118abe09a3.tar.gz |
Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution and
prototype mismatch
Diffstat (limited to 'lib/libc/stdtime/asctime.c')
-rw-r--r-- | lib/libc/stdtime/asctime.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stdtime/asctime.c b/lib/libc/stdtime/asctime.c index 832f185..b9da143 100644 --- a/lib/libc/stdtime/asctime.c +++ b/lib/libc/stdtime/asctime.c @@ -14,6 +14,10 @@ static char elsieid[] = "@(#)asctime.c 7.7"; #include "private.h" #include "tzfile.h" +#ifndef _THREAD_SAFE +static char *asctime_r __P((const struct tm *, char *)); +#endif + /* ** A la X3J11, with core dump avoidance. */ @@ -28,6 +32,9 @@ const struct tm * timeptr; return(asctime_r(timeptr, result)); } +#ifndef _THREAD_SAFE +static +#endif char * asctime_r(timeptr, result) const struct tm * timeptr; |