From b139689c6b078761358452d54e9b2d0883e4730b Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 3 Dec 2001 21:22:56 +0000 Subject: [PATCH] Warns cleanups. Add FreeBSD ID. --- usr.bin/script/Makefile | 2 ++ usr.bin/script/script.c | 4 ++-- 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)