Don't throw away constness.
Change-Id: Ia0b014c3d9e4fcaa6f81cdb23dc76f9d384b782b Reviewed-on: https://code.wireshark.org/review/12963 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
1ea011b891
commit
31956f98d0
|
@ -659,7 +659,7 @@ static void aeron_fragment_frame_add(aeron_fragment_t * fragment, aeron_frame_in
|
|||
/*----------------------------------------------------------------------------*/
|
||||
static gboolean aeron_is_address_multicast(const address * addr)
|
||||
{
|
||||
guint8 * addr_data = (guint8 *) addr->data;
|
||||
const guint8 * addr_data = (const guint8 *) addr->data;
|
||||
|
||||
switch (addr->type)
|
||||
{
|
||||
|
@ -872,7 +872,7 @@ static aeron_conversation_info_t * aeron_setup_conversation_info(const packet_in
|
|||
{
|
||||
case AT_IPv4:
|
||||
{
|
||||
guint8 * dst_addr = (guint8 *) pinfo->dst.data;
|
||||
const guint8 * dst_addr = (const guint8 *) pinfo->dst.data;
|
||||
|
||||
cinfo->addr1 = wmem_new0(wmem_packet_scope(), address);
|
||||
cinfo->addr2 = wmem_new0(wmem_packet_scope(), address);
|
||||
|
@ -927,7 +927,7 @@ static aeron_conversation_info_t * aeron_setup_conversation_info(const packet_in
|
|||
break;
|
||||
case AT_IPv6:
|
||||
{
|
||||
guint8 * dst_addr = (guint8 *) pinfo->dst.data;
|
||||
const guint8 * dst_addr = (const guint8 *) pinfo->dst.data;
|
||||
|
||||
cinfo->addr1 = wmem_new0(wmem_packet_scope(), address);
|
||||
cinfo->addr2 = wmem_new0(wmem_packet_scope(), address);
|
||||
|
|
Loading…
Reference in New Issue