bio/b_addr.c: resolve HP-UX compiler warnings.
authorAndy Polyakov <appro@openssl.org>
Fri, 6 Apr 2018 12:33:30 +0000 (14:33 +0200)
committerAndy Polyakov <appro@openssl.org>
Mon, 9 Apr 2018 20:35:25 +0000 (22:35 +0200)
commitca1beab7c11f0fe5e2717adc85fcf4ee8a9b4ae1
tree316baf544abc6d5a174f05fe7aab24ce5a702649
parentd78cecd0c0275268726cb34defd3ccc6ab124396
bio/b_addr.c: resolve HP-UX compiler warnings.

The warning reads "[cast] may cause misaligned access". Even though
this can be application-supplied pointer, misaligned access shouldn't
happen, because structure type is "encoded" into data itself, and
application would customarily pass correctly aligned pointer. But
there is no harm in resolving the warning...

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5894)

(cherry picked from commit 55bd917bc4213bc668f48b87d8c6feb9918fef8f)
crypto/bio/b_addr.c