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:32:59 +0000 (22:32 +0200)
commit55bd917bc4213bc668f48b87d8c6feb9918fef8f
tree7f0fbb22df72042962bb5cd82f25f592414b88ac
parent3c3badcf42a7aa7fe6ed84c943808d1d769abd14
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)
crypto/bio/b_addr.c