diff options
author | ache <ache@FreeBSD.org> | 1999-10-24 11:57:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-10-24 11:57:24 +0000 |
commit | 490fc835e877c6fe352b18588ad0098d169209e5 (patch) | |
tree | 4a3768933426d936762d82b0a14dde763609285f /lib/libc/stdio/tempnam.c | |
parent | ad5952ca34ef839789a2fc37d4eef775ce60e3be (diff) | |
download | FreeBSD-src-490fc835e877c6fe352b18588ad0098d169209e5.zip FreeBSD-src-490fc835e877c6fe352b18588ad0098d169209e5.tar.gz |
Remove UNSAFE_WARN ifdef for mktemp warning (never defined)
Use _mktemp internally
Diffstat (limited to 'lib/libc/stdio/tempnam.c')
-rw-r--r-- | lib/libc/stdio/tempnam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c index 5572654..dc34c7d 100644 --- a/lib/libc/stdio/tempnam.c +++ b/lib/libc/stdio/tempnam.c @@ -75,18 +75,18 @@ tempnam(dir, pfx) if ((f = (char *)dir)) { (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f, *(f + strlen(f) - 1) == '/'? "": "/", pfx); - if ((f = mktemp(name))) + if ((f = _mktemp(name))) return(f); } f = P_tmpdir; (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); - if ((f = mktemp(name))) + if ((f = _mktemp(name))) return(f); f = _PATH_TMP; (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); - if ((f = mktemp(name))) + if ((f = _mktemp(name))) return(f); sverrno = errno; |