diff options
author | ed <ed@FreeBSD.org> | 2011-12-10 18:21:03 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-12-10 18:21:03 +0000 |
commit | 2547a674dda8cd19c596d9f3b6e3485ce8fc0483 (patch) | |
tree | 24d02382e2caf6b8641909e275b187aa01ff21c9 /usr.bin/grep | |
parent | f559e163ab3d1116108b6178ddc228e7ede7d5f2 (diff) | |
download | FreeBSD-src-2547a674dda8cd19c596d9f3b6e3485ce8fc0483.zip FreeBSD-src-2547a674dda8cd19c596d9f3b6e3485ce8fc0483.tar.gz |
Add missing "static const" to long options table.
This table is only used in this C file and passed to getopt_long(), so
we can safely add static and const to it.
Diffstat (limited to 'usr.bin/grep')
-rw-r--r-- | usr.bin/grep/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 4eb4727..9623dd6 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -166,7 +166,7 @@ usage(void) static const char *optstr = "0123456789A:B:C:D:EFGHIJMLOPSRUVZabcd:e:f:hilm:nopqrsuvwxXy"; -struct option long_options[] = +static const struct option long_options[] = { {"binary-files", required_argument, NULL, BIN_OPT}, {"help", no_argument, NULL, HELP_OPT}, |