summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-27 09:22:11 +0200
committerMichael Adam <obnox@samba.org>2008-07-09 16:00:24 +0200
commit24caf1178a2438485680a6c1f27fbddb6e946b5d (patch)
treea6c224744cfe0cbf4d11e2b63bcefbaaeea6a2ec /source4
parent60b303d4c24b333c9b397f86b9381d798b1b6874 (diff)
downloadsamba-24caf1178a2438485680a6c1f27fbddb6e946b5d.tar.gz
samba-24caf1178a2438485680a6c1f27fbddb6e946b5d.tar.xz
samba-24caf1178a2438485680a6c1f27fbddb6e946b5d.zip
libnet_domain: eliminate "discards qualifier" warning (const).
Michael (This used to be commit ea99590046f50ec2d0c4afe0163fc8660a797ba4)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_domain.c2
1 files changed, 1 insertions, 1 deletions
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;