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;