summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/mktemp.c
diff options
context:
space:
mode:
authorJames Raynard <jraynard@FreeBSD.org>1996-06-12 22:58:21 +0000
committerJames Raynard <jraynard@FreeBSD.org>1996-06-12 22:58:21 +0000
commitb83100194d4f0c9572abe0fead120220437216f0 (patch)
treecd51d1f651327a263425cb2b525df325e4f67dfa /lib/libc/stdio/mktemp.c
parent9915c09cf91756410e2e028599e9a7348944e127 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r--lib/libc/stdio/mktemp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 3f5966e1f424..afe3f2da8d97 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -43,9 +43,9 @@ static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
#include <unistd.h>
#include <ctype.h>
-static int _gettemp();
+static int _gettemp(char *, int *);
-mkstemp(path)
+int mkstemp(path)
char *path;
{
int fd;
@@ -61,14 +61,13 @@ mktemp(path)
}
static
-_gettemp(path, doopen)
+int _gettemp(path, doopen)
char *path;
register int *doopen;
{
- extern int errno;
register char *start, *trv;
struct stat sbuf;
- u_int pid;
+ pid_t pid;
pid = getpid();
for (trv = path; *trv; ++trv); /* extra X's get set to 0's */