git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b303d
)
libnet_domain: eliminate "discards qualifier" warning (const).
author
Michael Adam
<obnox@samba.org>
Fri, 27 Jun 2008 07:22:11 +0000
(09:22 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 9 Jul 2008 14:00:24 +0000
(16:00 +0200)
Michael
(This used to be commit
ea99590046f50ec2d0c4afe0163fc8660a797ba4
)
source4/libnet/libnet_domain.c
patch
|
blob
|
history
diff --git
a/source4/libnet/libnet_domain.c
b/source4/libnet/libnet_domain.c
index 6fd3b59a058eed196a1f1eadfc441f82cc16c04c..ccdfdaf13489bbe1df8f6fa74b61389168500814 100644
(file)
--- 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;