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/asn1pars.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/asn1pars.c')
-rw-r--r-- | src/usr.bin/openssl/asn1pars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/asn1pars.c b/src/usr.bin/openssl/asn1pars.c index a17584e8a3..18f8a48c29 100644 --- a/src/usr.bin/openssl/asn1pars.c +++ b/src/usr.bin/openssl/asn1pars.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1pars.c,v 1.9 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: asn1pars.c,v 1.10 2019/07/14 03:30:45 guenther Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -126,7 +126,7 @@ asn1pars_opt_strparse(char *arg) | |||
126 | return (0); | 126 | return (0); |
127 | } | 127 | } |
128 | 128 | ||
129 | static struct option asn1pars_options[] = { | 129 | static const struct option asn1pars_options[] = { |
130 | { | 130 | { |
131 | .name = "dump", | 131 | .name = "dump", |
132 | .desc = "Dump unknown data in hex form", | 132 | .desc = "Dump unknown data in hex form", |