summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chroot
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-12-09 21:56:31 +0000
committermikeh <mikeh@FreeBSD.org>2001-12-09 21:56:31 +0000
commit845894074a1beb0a467683592d77d4c5999cb88b (patch)
tree642a9257a83074df1edc6ffac9a36d8e51692ca0 /usr.sbin/chroot
parent3ef9a13ce0c3115bc77ceac87adc7e2681b4ada3 (diff)
downloadFreeBSD-src-845894074a1beb0a467683592d77d4c5999cb88b.zip
FreeBSD-src-845894074a1beb0a467683592d77d4c5999cb88b.tar.gz
WARNS=2 cleanup.
Submitted by: Maxime Henrion <mux@qualys.com> MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/chroot')
-rw-r--r--usr.sbin/chroot/Makefile2
-rw-r--r--usr.sbin/chroot/chroot.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/chroot/Makefile b/usr.sbin/chroot/Makefile
index 652de79..d28de66 100644
--- a/usr.sbin/chroot/Makefile
+++ b/usr.sbin/chroot/Makefile
@@ -4,4 +4,6 @@
PROG= chroot
MAN= chroot.8
+WARNS?= 2
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c
index 72f10d5..0a3be8e 100644
--- a/usr.sbin/chroot/chroot.c
+++ b/usr.sbin/chroot/chroot.c
@@ -62,7 +62,7 @@ main(argc, argv)
char *argv[];
{
int ch;
- char *shell;
+ const char *shell;
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
OpenPOWER on IntegriCloud