summaryrefslogtreecommitdiff
path: root/usr.bin/xstr
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 02:26:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 02:26:21 +0000
commit1ba211e9e7ab7bc9fa7df3a53c21fabf4cefb8cd (patch)
tree987a6ed960da085fa3c6fe8cdf8d6302efb8b4e6 /usr.bin/xstr
parent4f9ed018c2821547c76751bc31486972cf13f8a7 (diff)
_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible too
Diffstat (limited to 'usr.bin/xstr')
-rw-r--r--usr.bin/xstr/pathnames.h5
-rw-r--r--usr.bin/xstr/xstr.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/xstr/pathnames.h b/usr.bin/xstr/pathnames.h
index 1561072a06e..a68f1d08d00 100644
--- a/usr.bin/xstr/pathnames.h
+++ b/usr.bin/xstr/pathnames.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pathnames.h,v 1.2 1996/06/26 05:44:33 deraadt Exp $ */
+/* $OpenBSD: pathnames.h,v 1.3 1996/09/16 02:26:20 deraadt Exp $ */
/* $NetBSD: pathnames.h,v 1.3 1994/11/14 04:56:22 jtc Exp $ */
/*
@@ -34,7 +34,6 @@
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/9/93
- * $NetBSD: pathnames.h,v 1.3 1994/11/14 04:56:22 jtc Exp $
*/
-#define _PATH_TMP "/tmp/xstrXXXXXX"
+#define _PATH_TMPFILE "/tmp/xstrXXXXXX"
diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c
index a97f8d9c11b..7ba2a699eeb 100644
--- a/usr.bin/xstr/xstr.c
+++ b/usr.bin/xstr/xstr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xstr.c,v 1.2 1996/06/26 05:44:34 deraadt Exp $ */
+/* $OpenBSD: xstr.c,v 1.3 1996/09/16 02:26:20 deraadt Exp $ */
/* $NetBSD: xstr.c,v 1.5 1994/12/24 16:57:59 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)xstr.c 8.1 (Berkeley) 6/9/93";
#endif
-static char rcsid[] = "$OpenBSD: xstr.c,v 1.2 1996/06/26 05:44:34 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xstr.c,v 1.3 1996/09/16 02:26:20 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -116,7 +116,7 @@ main(argc, argv)
if (cflg || argc == 0 && !readstd)
inithash();
else
- strings = mktemp(strdup(_PATH_TMP));
+ strings = mktemp(strdup(_PATH_TMPFILE));
while (readstd || argc > 0) {
if (freopen("x.c", "w", stdout) == NULL)
perror("x.c"), exit(1);