From: Guy Harris Date: Fri, 20 Jun 2014 19:01:13 +0000 (-0700) Subject: Make the table of long options const. X-Git-Tag: tcpdump-4.6.0~10 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a694646f7c9cdf6d7756280604f689f3bccddbf2 Make the table of long options const. --- diff --git a/tcpdump.c b/tcpdump.c index 8407e034..f41bf697 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -651,7 +651,7 @@ show_devices_and_exit (void) #define OPTION_NUMBER 128 #define OPTION_VERSION 129 -static struct option longopts[] = { +static const struct option longopts[] = { #if defined(HAVE_PCAP_CREATE) || defined(WIN32) { "buffer-size", required_argument, NULL, 'B' }, #endif