summaryrefslogtreecommitdiffstats
path: root/usr.bin/window
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2001-03-29 20:33:57 +0000
committereric <eric@FreeBSD.org>2001-03-29 20:33:57 +0000
commite7a634d197db8bcfd5f462ea582675a6ab39fa05 (patch)
tree4041eec862b308c39b8a078e03339aaed9493ab2 /usr.bin/window
parent5c460f220d7947e9004377c3330dfa9d4252efa0 (diff)
downloadFreeBSD-src-e7a634d197db8bcfd5f462ea582675a6ab39fa05.zip
FreeBSD-src-e7a634d197db8bcfd5f462ea582675a6ab39fa05.tar.gz
Include a missing header, and change a mktemp(3), mkdir(2) sequence to
mkdtemp(3). Approved by: murray
Diffstat (limited to 'usr.bin/window')
-rw-r--r--usr.bin/window/scanner.c1
-rw-r--r--usr.bin/window/wwterminfo.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/window/scanner.c b/usr.bin/window/scanner.c
index 23b8a12..e0140fc 100644
--- a/usr.bin/window/scanner.c
+++ b/usr.bin/window/scanner.c
@@ -44,6 +44,7 @@ static char rcsid[] = "@(#)$FreeBSD$";
#include "token.h"
#include "context.h"
#include "string.h"
+#include "mystring.h"
s_getc()
{
diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c
index ed60f3b..496cd51 100644
--- a/usr.bin/window/wwterminfo.c
+++ b/usr.bin/window/wwterminfo.c
@@ -64,8 +64,7 @@ wwterminfoinit()
/* make the directory */
(void) sprintf(wwterminfopath, "%swwinXXXXXX", _PATH_TMP);
- mktemp(wwterminfopath);
- if (mkdir(wwterminfopath, 0755) < 0 ||
+ if (mkdtemp(wwterminfopath) < 0 ||
chmod(wwterminfopath, 00755) < 0) {
wwerrno = WWE_SYS;
return -1;
OpenPOWER on IntegriCloud