summaryrefslogtreecommitdiff
path: root/usr.sbin/nghook
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2003-08-13 07:51:06 +0000
committerHartmut Brandt <harti@FreeBSD.org>2003-08-13 07:51:06 +0000
commit7cfb043cceaa5fc566a2e9f093ae7d3b508153ca (patch)
tree3739095551666fff3815415a39926b4e07963573 /usr.sbin/nghook
parent3af5ca99487855ad6dc286a14b05be88f8c3c44f (diff)
downloadsrc-test2-7cfb043cceaa5fc566a2e9f093ae7d3b508153ca.tar.gz
src-test2-7cfb043cceaa5fc566a2e9f093ae7d3b508153ca.zip
Notes
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 e427f2603cc9..8b2644afb47f 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 69ee581f84fb..ec9d724aa813 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;