mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Work around compiler error for breaking strict-aliasing rules
This commit fixes the following warning on an ARM eabi/uClibc system. helpers.c:86: error: dereferencing pointer 'a' does break strict-aliasing rules The fix is trivial. Simply set IPv4 addressing scheme in the struct ifreq instead of the struct sockaddr_in, whic is just a pointer into the same ifreq anyway. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Reference in New Issue
Block a user