From 7cfb043cceaa5fc566a2e9f093ae7d3b508153ca Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Wed, 13 Aug 2003 07:51:06 +0000 Subject: [PATCH] Make this WARNS=6 clean by just constifying two local char pointers. --- usr.sbin/nghook/Makefile | 1 + usr.sbin/nghook/main.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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;