diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2019-07-14 03:30:47 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2019-07-14 03:30:47 +0000 |
commit | 710a1d98b412e1a7a85ed4d862410ad9aa6ad606 (patch) | |
tree | 6a0136f318e5f5aaa40ee71ed3dc873b0ac07431 /usr.bin/openssl/genpkey.c | |
parent | fb321793852ddce7dce4a0b3ad37e739e0aaf420 (diff) |
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 'usr.bin/openssl/genpkey.c')
-rw-r--r-- | usr.bin/openssl/genpkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/openssl/genpkey.c b/usr.bin/openssl/genpkey.c index ef16a5e0dab..e2b46b77961 100644 --- a/usr.bin/openssl/genpkey.c +++ b/usr.bin/openssl/genpkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: genpkey.c,v 1.12 2018/02/08 11:17:44 jsing Exp $ */ +/* $OpenBSD: genpkey.c,v 1.13 2019/07/14 03:30:46 guenther Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006 */ @@ -141,7 +141,7 @@ genpkey_opt_pkeyopt(char *arg) return (0); } -struct option genpkey_options[] = { +static const struct option genpkey_options[] = { { .name = "algorithm", .argname = "name", |