diff options
author | Denys Vlasenko | 2010-02-04 18:41:18 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-02-04 18:41:18 +0100 |
commit | 12ca080a1ca8dfd0aeac54485451b906a7e61b16 (patch) | |
tree | abb273fb03a73bc9c20d05f9128bdfd9bfe55e55 /networking/udhcp | |
parent | 98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (diff) | |
download | busybox-12ca080a1ca8dfd0aeac54485451b906a7e61b16.zip busybox-12ca080a1ca8dfd0aeac54485451b906a7e61b16.tar.gz |
*: eliminate more aliasing warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r-- | networking/udhcp/arpping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c index 548796e..cf18153 100644 --- a/networking/udhcp/arpping.c +++ b/networking/udhcp/arpping.c @@ -87,6 +87,7 @@ int FAST_FUNC arpping(uint32_t test_nip, /* wait for arp reply, and check it */ timeout_ms = 2000; do { + typedef uint32_t aliased_uint32_t FIX_ALIASING; int r; unsigned prevTime = monotonic_ms(); @@ -107,7 +108,7 @@ int FAST_FUNC arpping(uint32_t test_nip, && arp.operation == htons(ARPOP_REPLY) /* don't check it: Linux doesn't return proper tHaddr (fixed in 2.6.24?) */ /* && memcmp(arp.tHaddr, from_mac, 6) == 0 */ - && *((uint32_t *) arp.sInaddr) == test_nip + && *(aliased_uint32_t*)arp.sInaddr == test_nip ) { /* if ARP source MAC matches safe_mac * (which is client's MAC), then it's not a conflict |