From: Guy Harris Date: Sat, 13 Aug 2016 00:26:43 +0000 (-0700) Subject: Mark a string as constant. X-Git-Tag: libpcap-1.8.1~75 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a07d1e71ed3e8e9bfc81c763e60b07ffbb67c87f?hp=-c Mark a string as constant. --- a07d1e71ed3e8e9bfc81c763e60b07ffbb67c87f diff --git a/pcap-snit.c b/pcap-snit.c index 7db2fd9a..79349456 100644 --- a/pcap-snit.c +++ b/pcap-snit.c @@ -286,7 +286,7 @@ pcap_activate_snit(pcap_t *p) struct ifreq ifr; /* interface request struct */ int chunksize = CHUNKSIZE; int fd; - static char dev[] = "/dev/nit"; + static const char dev[] = "/dev/nit"; if (p->opt.rfmon) { /*