[klibc] [PATCH] ipconfig: Use memcpy to avoid strict aliasing warnings.

maximilian attems max at stro.at
Mon Mar 22 12:52:46 PDT 2010


On Mon, 22 Mar 2010, Mike Waychison wrote:

> Newer compilers will complain about strict aliasing when casting struct
> sockaddr to sockaddr_in.  Even though these are legitimate type casts, changing
> them to use memcpy is easy enough and silences the warnings.
> 

thanks applied to patch queue and pulled out.



More information about the klibc mailing list