diff options
| author | jtc <jtc@NetBSD.org> | 1993-11-11 19:04:04 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1993-11-11 19:04:04 +0000 |
| commit | a054c6582aa8bf9dedeb688ddb84d55edbfac3bd (patch) | |
| tree | f0e435ad075ccaceffa9943ffe8ef5fd7330b946 /lib/libc/stdio | |
| parent | 243bc4cc0592f299956616ba3e08c4a1f5eae2f2 (diff) | |
First pass at getting a clean compile with "gcc -Wall", mostly explictly
declaring function return values, etc.
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/mktemp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 8419f43e7f8..ca83d07870b 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)mktemp.c 5.10 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: mktemp.c,v 1.3 1993/08/26 00:47:09 jtc Exp $"; +static char *rcsid = "$Id: mktemp.c,v 1.4 1993/11/11 19:04:43 jtc Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -41,9 +41,12 @@ static char *rcsid = "$Id: mktemp.c,v 1.3 1993/08/26 00:47:09 jtc Exp $"; #include <fcntl.h> #include <errno.h> #include <stdio.h> +#include <ctype.h> +#include <unistd.h> static int _gettemp(); +int mkstemp(path) char *path; { @@ -59,7 +62,7 @@ mktemp(path) return(_gettemp(path, (int *)NULL) ? path : (char *)NULL); } -static +static int _gettemp(path, doopen) char *path; register int *doopen; |
