diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 17:26:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 17:26:41 +0000 |
commit | dcd4c08bbde7fac5d2bf059959139b0e0eeb1707 (patch) | |
tree | c90140495ecb79483424fffcc3a8033e696fd87e /usr.bin/grep | |
parent | 2f7493581a9839b2d6cd9a750211ce06bf3b991c (diff) |
Make option string/struct const (since it is...). I've had this
in my tree for ages.
Diffstat (limited to 'usr.bin/grep')
-rw-r--r-- | usr.bin/grep/grep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index c3ce3bb4a0d..592573b50ba 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.45 2012/12/29 01:32:44 millert Exp $ */ +/* $OpenBSD: grep.c,v 1.46 2014/11/26 17:26:40 millert Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -119,12 +119,12 @@ usage(void) } #ifdef NOZ -static char *optstr = "0123456789A:B:CEFGHILRUVabce:f:hilnoqrsuvwxy"; +static const char optstr[] = "0123456789A:B:CEFGHILRUVabce:f:hilnoqrsuvwxy"; #else -static char *optstr = "0123456789A:B:CEFGHILRUVZabce:f:hilnoqrsuvwxy"; +static const char optstr[] = "0123456789A:B:CEFGHILRUVZabce:f:hilnoqrsuvwxy"; #endif -struct option long_options[] = +static const struct option long_options[] = { {"binary-files", required_argument, NULL, BIN_OPT}, {"help", no_argument, NULL, HELP_OPT}, |