aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorEric Melville <eric@FreeBSD.org>2001-03-29 20:33:57 +0000
committerEric Melville <eric@FreeBSD.org>2001-03-29 20:33:57 +0000
commit1a125da03a4962d3fb1d0fab08d90fe00348d841 (patch)
tree8d5f9118764c34376bc1212cda4e17efe7d964a3 /usr.bin
parent563dd7400833dfbd903faaaf3c457977398950fe (diff)
downloadsrc-1a125da03a4962d3fb1d0fab08d90fe00348d841.tar.gz
src-1a125da03a4962d3fb1d0fab08d90fe00348d841.zip
Include a missing header, and change a mktemp(3), mkdir(2) sequence to
mkdtemp(3). Approved by: murray
Notes
Notes: svn path=/head/; revision=75003
Diffstat (limited to 'usr.bin')
-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 23b8a12f48cf..e0140fc51dd2 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 ed60f3b1e0cc..496cd515bd5f 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;