diff options
author | Michael Adam <obnox@samba.org> | 2008-06-27 09:22:11 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-07-09 16:00:24 +0200 |
commit | 24caf1178a2438485680a6c1f27fbddb6e946b5d (patch) | |
tree | a6c224744cfe0cbf4d11e2b63bcefbaaeea6a2ec | |
parent | 60b303d4c24b333c9b397f86b9381d798b1b6874 (diff) | |
download | samba-24caf1178a2438485680a6c1f27fbddb6e946b5d.tar.gz samba-24caf1178a2438485680a6c1f27fbddb6e946b5d.tar.bz2 samba-24caf1178a2438485680a6c1f27fbddb6e946b5d.zip |
libnet_domain: eliminate "discards qualifier" warning (const).
Michael
(This used to be commit ea99590046f50ec2d0c4afe0163fc8660a797ba4)
-rw-r--r-- | source4/libnet/libnet_domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c index 6fd3b59a05..ccdfdaf134 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; |