diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-05-16 21:42:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-05-16 21:42:49 +0000 |
commit | f153eb070b8f97c3603467c513fb718122ed1627 (patch) | |
tree | b108d2e2f83deedb9ff6a9b9a64cd843255ffe52 /epan/addr_resolv.c | |
parent | 4530909323e42c1a6baaf5051b90e3e6da73ca8f (diff) | |
download | wireshark-f153eb070b8f97c3603467c513fb718122ed1627.tar.gz |
Cast away some warnings about alignment; ep_alloc() guarantees
sufficient alignment for all types of data.
svn path=/trunk/; revision=37190
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index 1837241fdc..d8f0421e37 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -3059,7 +3059,7 @@ get_eui64_name(const guint64 addr_eui64) guint8 *addr = ep_alloc(8); /* Copy and convert the address to network byte order. */ - *(guint64 *)(addr) = pntoh64(&(addr_eui64)); + *(guint64 *)(void *)(addr) = pntoh64(&(addr_eui64)); if ((gbl_resolv_flags & RESOLV_MAC) && !eth_resolution_initialized) { initialize_ethers(); @@ -3084,7 +3084,7 @@ get_eui64_name_if_known(const guint64 addr_eui64) guint8 *addr = ep_alloc(8); /* Copy and convert the address to network byte order. */ - *(guint64 *)(addr) = pntoh64(&(addr_eui64)); + *(guint64 *)(void *)(addr) = pntoh64(&(addr_eui64)); if (!eth_resolution_initialized) { initialize_ethers(); |