diff options
author | guenther <> | 2019-07-14 03:30:46 +0000 |
---|---|---|
committer | guenther <> | 2019-07-14 03:30:46 +0000 |
commit | bc8d7db132e8ba050dd6707a72cea5d3b6976e03 (patch) | |
tree | 5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/spkac.c | |
parent | 7e286c6ee458c5d54810f9952a2a61b1bc9538bc (diff) | |
download | openbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.tar.gz openbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.tar.bz2 openbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.zip |
Mark the initialized struct options arrays as both static and const.
This moves them from .data to .data.rel.ro
ok deraadt@ inoguchi@
Diffstat (limited to 'src/usr.bin/openssl/spkac.c')
-rw-r--r-- | src/usr.bin/openssl/spkac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/spkac.c b/src/usr.bin/openssl/spkac.c index 549a220589..7fd8523c01 100644 --- a/src/usr.bin/openssl/spkac.c +++ b/src/usr.bin/openssl/spkac.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: spkac.c,v 1.10 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: spkac.c,v 1.11 2019/07/14 03:30:46 guenther Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. Based on an original idea by Massimiliano Pala | 3 | * project 1999. Based on an original idea by Massimiliano Pala |
4 | * (madwolf@openca.org). | 4 | * (madwolf@openca.org). |
@@ -86,7 +86,7 @@ static struct { | |||
86 | int verify; | 86 | int verify; |
87 | } spkac_config; | 87 | } spkac_config; |
88 | 88 | ||
89 | static struct option spkac_options[] = { | 89 | static const struct option spkac_options[] = { |
90 | { | 90 | { |
91 | .name = "challenge", | 91 | .name = "challenge", |
92 | .argname = "string", | 92 | .argname = "string", |