diff options
| author | guenther <> | 2019-07-14 03:30:46 +0000 |
|---|---|---|
| committer | guenther <> | 2019-07-14 03:30:46 +0000 |
| commit | ce9daaa0080f6ec467441aa485eb3f11ad6fb74a (patch) | |
| tree | 5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/prime.c | |
| parent | e9ef26d0b799866960d5d8ea8c87d53cea6b50ff (diff) | |
| download | openbsd-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/prime.c')
| -rw-r--r-- | src/usr.bin/openssl/prime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/prime.c b/src/usr.bin/openssl/prime.c index 5e1ad70ca0..ee0c342980 100644 --- a/src/usr.bin/openssl/prime.c +++ b/src/usr.bin/openssl/prime.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: prime.c,v 1.12 2019/01/20 01:59:06 tb Exp $ */ | 1 | /* $OpenBSD: prime.c,v 1.13 2019/07/14 03:30:46 guenther Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -64,7 +64,7 @@ struct { | |||
| 64 | int safe; | 64 | int safe; |
| 65 | } prime_config; | 65 | } prime_config; |
| 66 | 66 | ||
| 67 | struct option prime_options[] = { | 67 | static const struct option prime_options[] = { |
| 68 | { | 68 | { |
| 69 | .name = "bits", | 69 | .name = "bits", |
| 70 | .argname = "n", | 70 | .argname = "n", |
