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/ciphers.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/ciphers.c')
-rw-r--r-- | src/usr.bin/openssl/ciphers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ciphers.c b/src/usr.bin/openssl/ciphers.c index 2b8ad5ba85..a20f19c3af 100644 --- a/src/usr.bin/openssl/ciphers.c +++ b/src/usr.bin/openssl/ciphers.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ciphers.c,v 1.9 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: ciphers.c,v 1.10 2019/07/14 03:30:45 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -29,7 +29,7 @@ struct { | |||
29 | int verbose; | 29 | int verbose; |
30 | } ciphers_config; | 30 | } ciphers_config; |
31 | 31 | ||
32 | struct option ciphers_options[] = { | 32 | static const struct option ciphers_options[] = { |
33 | { | 33 | { |
34 | .name = "h", | 34 | .name = "h", |
35 | .type = OPTION_FLAG, | 35 | .type = OPTION_FLAG, |