From a0910557c774b90365a7d348432a972257dd7dcc Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Mon, 4 Jun 2012 12:20:37 +0000 Subject: Get rid of a couple of warnings. svn path=/trunk/; revision=43064 --- asn1/ldap/packet-ldap-template.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'asn1/ldap') diff --git a/asn1/ldap/packet-ldap-template.c b/asn1/ldap/packet-ldap-template.c index 9576e1245e..258558a769 100644 --- a/asn1/ldap/packet-ldap-template.c +++ b/asn1/ldap/packet-ldap-template.c @@ -432,7 +432,7 @@ static void * attribute_types_copy_cb(void* n, const void* o, size_t siz _U_) { attribute_type_t* new_rec = (attribute_type_t*)n; - const attribute_type_t* old_rec = (attribute_type_t*)o; + const attribute_type_t* old_rec = (const attribute_type_t*)o; new_rec->attribute_type = g_strdup(old_rec->attribute_type); new_rec->attribute_desc = g_strdup(old_rec->attribute_desc); @@ -632,7 +632,7 @@ dissect_ldap_AssertionValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, as /* This octet string contained a GUID */ dissect_dcerpc_uuid_t(tvb, offset, actx->pinfo, tree, drep, hf_ldap_guid, &uuid); - ldapvalue_string=ep_alloc(1024); + ldapvalue_string=(char*)ep_alloc(1024); g_snprintf(ldapvalue_string, 1023, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", uuid.Data1, uuid.Data2, uuid.Data3, uuid.Data4[0], uuid.Data4[1], @@ -648,7 +648,7 @@ dissect_ldap_AssertionValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, as /* get flag value to populate ldapvalue_string */ flags=tvb_get_letohl(tvb, offset); - ldapvalue_string=ep_alloc(1024); + ldapvalue_string=(char*)ep_alloc(1024); g_snprintf(ldapvalue_string, 1023, "0x%08x",flags); /* populate bitmask subtree */ @@ -684,7 +684,7 @@ dissect_ldap_AssertionValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, as if(is_ascii){ ldapvalue_string=ep_strndup(str, len); } else { - ldapvalue_string=ep_alloc(3*len); + ldapvalue_string=(char*)ep_alloc(3*len); for(i=0;i