summaryrefslogtreecommitdiff
path: root/openbsd-compat/mktemp.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 17:37:02 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 17:37:02 +1100
commitffcd0ecf6be104caec2dbaf27460a11eb425cf52 (patch)
tree0092f552e5d7a75a2f500ec8800e541c8c4aac05 /openbsd-compat/mktemp.c
parent8f0d8f8ea2a902c58b19d596c22999db61cf39d2 (diff)
downloadopenssh-git-ffcd0ecf6be104caec2dbaf27460a11eb425cf52.tar.gz
- (dtucker) [openbsd-compat/mktemp.c] Update from OpenBSD 1.17 -> 1.19.
Diffstat (limited to 'openbsd-compat/mktemp.c')
-rw-r--r--openbsd-compat/mktemp.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/openbsd-compat/mktemp.c b/openbsd-compat/mktemp.c
index 8071aa18..88e04c52 100644
--- a/openbsd-compat/mktemp.c
+++ b/openbsd-compat/mktemp.c
@@ -1,6 +1,7 @@
/* THIS FILE HAS BEEN MODIFIED FROM THE ORIGINAL OPENBSD SOURCE */
/* Changes: Removed mktemp */
+/* $OpenBSD: mktemp.c,v 1.19 2005/08/08 08:05:36 espie Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
@@ -36,16 +37,10 @@
#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
-#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mktemp.c,v 1.17 2003/06/02 20:18:37 millert Exp $";
-#endif /* LIBC_SCCS and not lint */
-
static int _gettemp(char *, int *, int, int);
int
-mkstemps(path, slen)
- char *path;
- int slen;
+mkstemps(char *path, int slen)
{
int fd;
@@ -53,8 +48,7 @@ mkstemps(path, slen)
}
int
-mkstemp(path)
- char *path;
+mkstemp(char *path)
{
int fd;
@@ -62,8 +56,7 @@ mkstemp(path)
}
char *
-mkdtemp(path)
- char *path;
+mkdtemp(char *path)
{
return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL);
}