aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tacacs.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-19 04:54:30 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-19 04:54:30 +0000
commita10b98284c44bcafc86ee440ce936cfe305fe01b (patch)
treeff1ad5ac23bc527b2cccdff6e73ba401bd04d5f5 /epan/dissectors/packet-tacacs.c
parentbab72ca73439280d7b83d40495d8a39d46267ddc (diff)
From beroset:
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48412
Diffstat (limited to 'epan/dissectors/packet-tacacs.c')
-rw-r--r--epan/dissectors/packet-tacacs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-tacacs.c b/epan/dissectors/packet-tacacs.c
index cc54ff5080..7856aa4996 100644
--- a/epan/dissectors/packet-tacacs.c
+++ b/epan/dissectors/packet-tacacs.c
@@ -355,7 +355,7 @@ tacplus_decrypted_tvb_setup( tvbuff_t *tvb, tvbuff_t **dst_tvb, packet_info *pin
tvb_memcpy(tvb, session_id, 4,4);
- buff = tvb_memdup(tvb, TAC_PLUS_HDR_SIZE, len);
+ buff = (guint8 *)tvb_memdup(tvb, TAC_PLUS_HDR_SIZE, len);
md5_xor( buff, key, len, session_id,version, tvb_get_guint8(tvb,2) );
@@ -793,8 +793,8 @@ tacplus_print_key_entry( gpointer data, gpointer user_data )
static int
cmp_conv_address( gconstpointer p1, gconstpointer p2 )
{
- const tacplus_key_entry *a1=p1;
- const tacplus_key_entry *a2=p2;
+ const tacplus_key_entry *a1=(const tacplus_key_entry *)p1;
+ const tacplus_key_entry *a2=(const tacplus_key_entry *)p2;
gint32 ret;
/*
printf("p1=>");
@@ -837,8 +837,8 @@ mkipv4_address( address **addr, const char *str_addr )
{
char *addr_data;
- *addr=g_malloc( sizeof(address) );
- addr_data=g_malloc( 4 );
+ *addr=(address *)g_malloc( sizeof(address) );
+ addr_data=(char *)g_malloc( 4 );
inet_pton( AF_INET, str_addr, addr_data );
SET_ADDRESS(*addr, AT_IPv4, 4, addr_data);
}
@@ -846,7 +846,7 @@ static void
parse_tuple( char *key_from_option )
{
char *client,*key;
- tacplus_key_entry *tacplus_data=g_malloc( sizeof(tacplus_key_entry) );
+ tacplus_key_entry *tacplus_data=(tacplus_key_entry *)g_malloc( sizeof(tacplus_key_entry) );
/*
printf("keys: %s\n", key_from_option );
*/