From 24caf1178a2438485680a6c1f27fbddb6e946b5d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 27 Jun 2008 09:22:11 +0200 Subject: libnet_domain: eliminate "discards qualifier" warning (const). Michael (This used to be commit ea99590046f50ec2d0c4afe0163fc8660a797ba4) --- source4/libnet/libnet_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c index 6fd3b59a058..ccdfdaf1348 100644 --- a/source4/libnet/libnet_domain.c +++ b/source4/libnet/libnet_domain.c @@ -845,7 +845,7 @@ NTSTATUS libnet_DomainCloseSamr_recv(struct composite_context *c, struct libnet_ /* domain policy handle closed successfully */ ZERO_STRUCT(ctx->samr.handle); - talloc_free(ctx->samr.name); + talloc_free(discard_const_p(char, ctx->samr.name)); talloc_free(ctx->samr.sid); ctx->samr.name = NULL; ctx->samr.sid = NULL; -- cgit