summaryrefslogtreecommitdiff
path: root/usr.bin/script
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-12-03 21:22:56 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-12-03 21:22:56 +0000
commitb139689c6b078761358452d54e9b2d0883e4730b (patch)
tree7be13f05009e571e7a2653e8ea104359225e4567 /usr.bin/script
parent586ffa2e8a71f44a82a0cdc922ed142b39afedb2 (diff)
downloadsrc-test2-b139689c6b078761358452d54e9b2d0883e4730b.tar.gz
src-test2-b139689c6b078761358452d54e9b2d0883e4730b.zip
Notes
Diffstat (limited to 'usr.bin/script')
-rw-r--r--usr.bin/script/Makefile2
-rw-r--r--usr.bin/script/script.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/script/Makefile b/usr.bin/script/Makefile
index 78dbe68c514a..61f94350afae 100644
--- a/usr.bin/script/Makefile
+++ b/usr.bin/script/Makefile
@@ -1,6 +1,8 @@
+# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= script
+WARNS?= 2
LDADD= -lutil
DPADD= ${LIBUTIL}
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 20c6a0197645..115c1f9aff04 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -66,7 +66,7 @@ static const char rcsid[] =
FILE *fscript;
int master, slave;
int child;
-char *fname;
+const char *fname;
int qflg;
struct termios tt;
@@ -232,7 +232,7 @@ void
doshell(av)
char **av;
{
- char *shell;
+ const char *shell;
shell = getenv("SHELL");
if (shell == NULL)