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/passwd.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/passwd.c')
-rw-r--r-- | src/usr.bin/openssl/passwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/passwd.c b/src/usr.bin/openssl/passwd.c index 428f75a7ca..4033b55372 100644 --- a/src/usr.bin/openssl/passwd.c +++ b/src/usr.bin/openssl/passwd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: passwd.c,v 1.9 2018/02/07 05:47:55 jsing Exp $ */ | 1 | /* $OpenBSD: passwd.c,v 1.10 2019/07/14 03:30:46 guenther Exp $ */ |
2 | 2 | ||
3 | #if defined OPENSSL_NO_MD5 | 3 | #if defined OPENSSL_NO_MD5 |
4 | #define NO_MD5CRYPT_1 | 4 | #define NO_MD5CRYPT_1 |
@@ -53,7 +53,7 @@ static struct { | |||
53 | int usecrypt; | 53 | int usecrypt; |
54 | } passwd_config; | 54 | } passwd_config; |
55 | 55 | ||
56 | static struct option passwd_options[] = { | 56 | static const struct option passwd_options[] = { |
57 | #ifndef NO_MD5CRYPT_1 | 57 | #ifndef NO_MD5CRYPT_1 |
58 | { | 58 | { |
59 | .name = "1", | 59 | .name = "1", |