From 1c714850d5068864b1f04a4211223dec11a30d67 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 May 2011 14:57:37 -0700 Subject: Clean up some const and other compiler warnings. Autobuild-User: Jeremy Allison Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104 --- nsswitch/libwbclient/wbc_util.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'nsswitch/libwbclient') diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c index d783ba36d8..af134ba7e5 100644 --- a/nsswitch/libwbclient/wbc_util.c +++ b/nsswitch/libwbclient/wbc_util.c @@ -623,13 +623,13 @@ static void wbcDomainControllerInfoExDestructor(void *ptr) { struct wbcDomainControllerInfoEx *i = (struct wbcDomainControllerInfoEx *)ptr; - free((char *)(i->dc_unc)); - free((char *)(i->dc_address)); - free((char *)(i->domain_guid)); - free((char *)(i->domain_name)); - free((char *)(i->forest_name)); - free((char *)(i->dc_site_name)); - free((char *)(i->client_site_name)); + free(discard_const_p(char, i->dc_unc)); + free(discard_const_p(char, i->dc_address)); + free(discard_const_p(char, i->domain_guid)); + free(discard_const_p(char, i->domain_name)); + free(discard_const_p(char, i->forest_name)); + free(discard_const_p(char, i->dc_site_name)); + free(discard_const_p(char, i->client_site_name)); } static wbcErr wbc_create_domain_controller_info_ex(const struct winbindd_response *resp, @@ -758,7 +758,7 @@ static void wbcNamedBlobDestructor(void *ptr) struct wbcNamedBlob *b = (struct wbcNamedBlob *)ptr; while (b->name != NULL) { - free((char *)(b->name)); + free(discard_const_p(char, b->name)); free(b->blob.data); b += 1; } -- cgit