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(); diff --git a/epan/address_to_str.c b/epan/address_to_str.c index 16831ee68d..8ee7b0e50e 100644 --- a/epan/address_to_str.c +++ b/epan/address_to_str.c @@ -334,7 +334,7 @@ eui64_to_str(const guint64 ad) { buf=ep_alloc(EUI64_STR_LEN); /* Copy and convert the address to network byte order. */ - *(guint64 *)(p_eui64) = pntoh64(&(ad)); + *(guint64 *)(void *)(p_eui64) = pntoh64(&(ad)); sprintf(buf, "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", p_eui64[0], p_eui64[1], p_eui64[2], p_eui64[3], diff --git a/epan/ftypes/ftype-integer.c b/epan/ftypes/ftype-integer.c index 60a10e21da..38cd8d3cc0 100644 --- a/epan/ftypes/ftype-integer.c +++ b/epan/ftypes/ftype-integer.c @@ -528,7 +528,7 @@ eui64_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf) guint8 *p_eui64 = ep_alloc(8); /* Copy and convert the address to network byte order. */ - *(guint64 *)(p_eui64) = pntoh64(&(fv->value.integer64)); + *(guint64 *)(void *)(p_eui64) = pntoh64(&(fv->value.integer64)); sprintf(buf, "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", p_eui64[0], p_eui64[1], p_eui64[2], p_eui64[3],