diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-01-19 22:32:24 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-01-19 22:32:24 +0000 |
commit | 68edf1604f7ead11f3e74dae23a755ab1ba2f734 (patch) | |
tree | ac253cde3d09620e6e344e0c7c580f2bd1e6e808 /lib/libc/stdio/tempnam.c | |
parent | 79f1988a5f2ca2a52c134490b40198893bc33855 (diff) |
put all the __warn_references behind a #ifndef NO_WARN_REFERENCES which
is then set in the libc Makefile for the mips (the mips linker can't
handle them)
Diffstat (limited to 'lib/libc/stdio/tempnam.c')
-rw-r--r-- | lib/libc/stdio/tempnam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c index 1b49112933d..7aa195e3593 100644 --- a/lib/libc/stdio/tempnam.c +++ b/lib/libc/stdio/tempnam.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: tempnam.c,v 1.5 1996/12/28 02:33:14 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tempnam.c,v 1.6 1997/01/19 22:32:22 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -43,8 +43,10 @@ static char rcsid[] = "$OpenBSD: tempnam.c,v 1.5 1996/12/28 02:33:14 deraadt Exp #include <unistd.h> #include <paths.h> +#ifndef NO_WARN_REFERENCES __warn_references(tempnam, "warning: tempnam() possibly used unsafely; consider using mkstemp()"); +#endif extern char *_mktemp __P((char *)); |