diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-15 11:50:09 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-18 15:34:03 +0100 |
commit | 7fb4b92c01bdef71543650ef7da6bfcec69f9cde (patch) | |
tree | 13c64675926b6f4b7377ce8ff49ed866a8015e47 /crypto | |
parent | 13c03c8d6da334bb1cde6ce4133e7c75b3b76947 (diff) |
Avoid type punning warnings in b_addr.c
RT4378
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/b_addr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index 3a9a00c121..e5352db756 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -708,12 +708,12 @@ int BIO_lookup(const char *host, const char *service, /* Windows doesn't seem to have in_addr_t */ #ifdef OPENSSL_SYS_WINDOWS static uint32_t he_fallback_address; - static const uint32_t *he_fallback_addresses[] = - { &he_fallback_address, NULL }; + static const char *he_fallback_addresses[] = + { (char *)&he_fallback_address, NULL }; #else static in_addr_t he_fallback_address; - static const in_addr_t *he_fallback_addresses[] = - { &he_fallback_address, NULL }; + static const char *he_fallback_addresses[] = + { (char *)&he_fallback_address, NULL }; #endif static const struct hostent he_fallback = { NULL, NULL, AF_INET, sizeof(he_fallback_address), |