From 0a17799d614a4d0720d98e2ccea3e78502855f82 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sat, 2 Mar 2013 22:54:39 +0000 Subject: From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 : Remove C++ incompatibilities from most of the dcerpc code svn path=/trunk/; revision=48023 --- epan/address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/address.h') diff --git a/epan/address.h b/epan/address.h index 65bde09668..9a23846774 100644 --- a/epan/address.h +++ b/epan/address.h @@ -151,7 +151,7 @@ typedef struct _address { (to)->type = (from)->type; \ (to)->len = (from)->len; \ (to)->hf = (from)->hf; \ - COPY_ADDRESS_data = g_malloc((from)->len); \ + COPY_ADDRESS_data = (guint8 *)g_malloc((from)->len); \ memcpy(COPY_ADDRESS_data, (from)->data, (from)->len); \ (to)->data = COPY_ADDRESS_data; \ } @@ -181,7 +181,7 @@ typedef struct _address { #define ADD_ADDRESS_TO_HASH(hash_val, addr) { \ const guint8 *ADD_ADDRESS_TO_HASH_data; \ int ADD_ADDRESS_TO_HASH_index; \ - ADD_ADDRESS_TO_HASH_data = (addr)->data; \ + ADD_ADDRESS_TO_HASH_data = (const guint8 *)(addr)->data; \ for (ADD_ADDRESS_TO_HASH_index = 0; \ ADD_ADDRESS_TO_HASH_index < (addr)->len; \ ADD_ADDRESS_TO_HASH_index++) \ -- cgit v1.2.3