From 3eb06be97d520daef0bad19bf9c261b01abdc66d Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Tue, 19 Mar 2013 19:28:57 +0000 Subject: From beroset: remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48425 --- epan/dissectors/packet-per.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-per.c') diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c index 29ee8e4470..a91d8593c0 100644 --- a/epan/dissectors/packet-per.c +++ b/epan/dissectors/packet-per.c @@ -163,7 +163,7 @@ static tvbuff_t *new_octet_aligned_subset(tvbuff_t *tvb, guint32 offset, asn1_ct if (offset & 0x07) { /* unaligned */ shift1 = offset & 0x07; shift0 = 8 - shift1; - buf = g_malloc(actual_length); + buf = (guint8 *)g_malloc(actual_length); octet0 = tvb_get_guint8(tvb, boffset); for (i=0; iname)+2; - str = ep_alloc(str_length+1); + str = (char *)ep_alloc(str_length+1); str_index = 0; str_index = g_snprintf(str, str_length+1, "%s: ", hfi->name); for(bit=0;bit<((int)(offset&0x07));bit++){ -- cgit v1.2.3