From 7fb4b92c01bdef71543650ef7da6bfcec69f9cde Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 15 Jun 2016 11:50:09 +0100 Subject: [PATCH] Avoid type punning warnings in b_addr.c RT4378 Reviewed-by: Richard Levitte --- crypto/bio/b_addr.c | 8 ++++---- 1 file 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),