diff options
author | 2014-11-26 17:26:40 +0000 | |
---|---|---|
committer | 2014-11-26 17:26:40 +0000 | |
commit | eb63a486919eaa1d52cdaa51117a409fe283bf06 (patch) | |
tree | 41518e0e5abeca66563f6bacd7acb6a38c4de400 | |
parent | The onboard ix(4) interfaces on the SPARC T5 machines don't have a valid MAC (diff) | |
download | wireguard-openbsd-eb63a486919eaa1d52cdaa51117a409fe283bf06.tar.xz wireguard-openbsd-eb63a486919eaa1d52cdaa51117a409fe283bf06.zip |
Make option string/struct const (since it is...). I've had this
in my tree for ages.
-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}, |