summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-24 18:51:40 +0000
committerdd <dd@FreeBSD.org>2001-06-24 18:51:40 +0000
commit65ad0f0162068f8ace1d27e2818a749f8b85104f (patch)
tree41a868d55f62292378b4220db6851fd70a4cfe7a
parentcee06e7ada06eb96d4ffe672a28694f86aed63d4 (diff)
downloadFreeBSD-src-65ad0f0162068f8ace1d27e2818a749f8b85104f.zip
FreeBSD-src-65ad0f0162068f8ace1d27e2818a749f8b85104f.tar.gz
Constify and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
-rw-r--r--usr.sbin/boot98cfg/Makefile1
-rw-r--r--usr.sbin/boot98cfg/boot98cfg.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/boot98cfg/Makefile b/usr.sbin/boot98cfg/Makefile
index efeb402..6d8441a 100644
--- a/usr.sbin/boot98cfg/Makefile
+++ b/usr.sbin/boot98cfg/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
PROG= boot98cfg
+WARNS?= 2
MAN= boot98cfg.8
.include <bsd.prog.mk>
diff --git a/usr.sbin/boot98cfg/boot98cfg.c b/usr.sbin/boot98cfg/boot98cfg.c
index 85a817d..bd4305b 100644
--- a/usr.sbin/boot98cfg/boot98cfg.c
+++ b/usr.sbin/boot98cfg/boot98cfg.c
@@ -114,7 +114,7 @@ int
main(int argc, char *argv[])
{
char *endptr;
- char *iplpath = "/boot/boot0", *menupath = "/boot/boot0.5";
+ const char *iplpath = "/boot/boot0", *menupath = "/boot/boot0.5";
char *iplbakpath = NULL, *menubakpath = NULL;
char *disk;
int B_flag = 0;
OpenPOWER on IntegriCloud