From 5c069545653a154c03530c72e1a6a7cb842deeca Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 31 Dec 2015 14:38:04 -0800 Subject: [PATCH] Squelch a compiler warning. Change-Id: I8933cbc250e3d1a3c6867f8166bc5b584b82211c Reviewed-on: https://code.wireshark.org/review/12977 Reviewed-by: Guy Harris --- epan/dissectors/packet-enip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-enip.c b/epan/dissectors/packet-enip.c index 64b639ead8..d4dda663d2 100644 --- a/epan/dissectors/packet-enip.c +++ b/epan/dissectors/packet-enip.c @@ -2098,7 +2098,7 @@ dissect_cpf(enip_request_key_t *request_key, int command, tvbuff_t *tvb, guint32 *datap; port = tvb_get_ntohs(tvb, offset+8); - datap = wmem_alloc(wmem_file_scope(), sizeof(guint32)); + datap = (guint32 *)wmem_alloc(wmem_file_scope(), sizeof(guint32)); *datap = tvb_get_ipv4(tvb, offset+10); if (item == SOCK_ADR_INFO_OT)