diff options
author | jraynard <jraynard@FreeBSD.org> | 1996-06-12 22:58:21 +0000 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1996-06-12 22:58:21 +0000 |
commit | 4a395602dc927c2e081ae681cefecd87fe5ca3b1 (patch) | |
tree | cd51d1f651327a263425cb2b525df325e4f67dfa /lib/libc/stdio/mktemp.c | |
parent | 8a4400a463b6e76c6c1aebcd4a04d44c0275288c (diff) | |
download | FreeBSD-src-4a395602dc927c2e081ae681cefecd87fe5ca3b1.zip FreeBSD-src-4a395602dc927c2e081ae681cefecd87fe5ca3b1.tar.gz |
Code cleanup:-
The usual stuff, adding missing function prototypes, argument types,
return values, etc. In mktemp.c, convert pid from u_int to pid_t, and
get rid of "extern int errno".
Diffstat (limited to 'lib/libc/stdio/mktemp.c')
-rw-r--r-- | lib/libc/stdio/mktemp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 3f5966e..afe3f2d 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 */ |