summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nghook
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-13 07:51:06 +0000
committerharti <harti@FreeBSD.org>2003-08-13 07:51:06 +0000
commitd199702b34f6e64a91ba3126b29b5b1d926772c9 (patch)
tree3739095551666fff3815415a39926b4e07963573 /usr.sbin/nghook
parent72ab1c9271aac9063f93f65a3b0bdcda2d29d613 (diff)
downloadFreeBSD-src-d199702b34f6e64a91ba3126b29b5b1d926772c9.zip
FreeBSD-src-d199702b34f6e64a91ba3126b29b5b1d926772c9.tar.gz
Make this WARNS=6 clean by just constifying two local char pointers.
Diffstat (limited to 'usr.sbin/nghook')
-rw-r--r--usr.sbin/nghook/Makefile1
-rw-r--r--usr.sbin/nghook/main.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/nghook/Makefile b/usr.sbin/nghook/Makefile
index e427f26..8b2644a 100644
--- a/usr.sbin/nghook/Makefile
+++ b/usr.sbin/nghook/Makefile
@@ -4,6 +4,7 @@
PROG= nghook
MAN= nghook.8
SRCS= main.c
+WARNS= 6
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph
diff --git a/usr.sbin/nghook/main.c b/usr.sbin/nghook/main.c
index 69ee581..ec9d724 100644
--- a/usr.sbin/nghook/main.c
+++ b/usr.sbin/nghook/main.c
@@ -71,7 +71,8 @@ int
main(int ac, char *av[])
{
struct ngm_connect ngc;
- char *path = NULL, *hook = DEFAULT_HOOKNAME;
+ const char *path = NULL;
+ const char *hook = DEFAULT_HOOKNAME;
int csock, dsock;
int asciiFlag = 0;
int loopFlag = 0;
OpenPOWER on IntegriCloud