From 23e0bb44c9a5172503c12bb894ead65e32b5ac6f Mon Sep 17 00:00:00 2001 From: yar Date: Mon, 27 Nov 2006 17:01:31 +0000 Subject: [PATCH] Don't discard a const qualifier from constant strings. --- usr.bin/systat/netstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 9fe687f2b60c..1ffc14ee40a6 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -471,7 +471,8 @@ void shownetstat() { struct netinfo *p, *q; - char proto[6], *family = ""; + char proto[6]; + const char *family = ""; /* * First, delete any connections that have gone