summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/certhash.c
diff options
context:
space:
mode:
authorguenther <>2019-07-14 03:30:46 +0000
committerguenther <>2019-07-14 03:30:46 +0000
commitce9daaa0080f6ec467441aa485eb3f11ad6fb74a (patch)
tree5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/certhash.c
parente9ef26d0b799866960d5d8ea8c87d53cea6b50ff (diff)
downloadopenbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.gz
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.bz2
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.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/certhash.c')
-rw-r--r--src/usr.bin/openssl/certhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c
index 5838f0209b..5125380413 100644
--- a/src/usr.bin/openssl/certhash.c
+++ b/src/usr.bin/openssl/certhash.c
@@ -37,7 +37,7 @@ static struct {
37 int verbose; 37 int verbose;
38} certhash_config; 38} certhash_config;
39 39
40struct option certhash_options[] = { 40static const struct option certhash_options[] = {
41 { 41 {
42 .name = "n", 42 .name = "n",
43 .desc = "Perform a dry-run - do not make any changes", 43 .desc = "Perform a dry-run - do not make any changes",