summaryrefslogtreecommitdiff
path: root/usr.bin/script
diff options
context:
space:
mode:
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)