From e131c94ac1b06cc49b1c25717d3496dba8b0b3df Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 May 2011 13:42:05 -0700 Subject: More const fixes for compiler warnings from the waf build. --- nsswitch/libwbclient/tests/wbclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nsswitch/libwbclient') diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index c6ee531481..12fc31ea5e 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -395,7 +395,7 @@ static bool test_wbc_lookup_rids(struct torture_context *tctx) torture_assert_str_equal( tctx, names[1], "Users", "S-1-5-32-545 not mapped to 'Users'"); - wbcFreeMemory((char *)domain_name); + wbcFreeMemory(discard_const_p(char ,domain_name)); wbcFreeMemory(names); wbcFreeMemory(types); -- cgit