summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-28 02:47:12 +0200
committerGünther Deschner <gd@samba.org>2010-05-28 02:49:37 +0200
commitc5eeb0d155bc49fe7ead2a601bdd1bffaa5b119c (patch)
tree349d25ede3601046e407fb752bdbe646bff0ba8d
parent38d69ca547d6eaead316d990dc140a8250cf64d2 (diff)
downloadsamba-c5eeb0d155bc49fe7ead2a601bdd1bffaa5b119c.tar.gz
samba-c5eeb0d155bc49fe7ead2a601bdd1bffaa5b119c.tar.bz2
samba-c5eeb0d155bc49fe7ead2a601bdd1bffaa5b119c.zip
s3-auth: fix c++ buildwarnings.
Guenther
-rw-r--r--source3/auth/server_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index 27f0487a4d..2545e7d58f 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -431,7 +431,7 @@ struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
}
if (orig->base.groups.count) {
- info3->base.groups.rids =
+ info3->base.groups.rids = (struct samr_RidWithAttribute *)
talloc_memdup(info3, orig->base.groups.rids,
(sizeof(struct samr_RidWithAttribute) *
orig->base.groups.count));
@@ -455,7 +455,7 @@ struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
}
if (orig->sidcount) {
- info3->sids = talloc_memdup(info3, orig->sids,
+ info3->sids = (struct netr_SidAttr *)talloc_memdup(info3, orig->sids,
(sizeof(struct netr_SidAttr) *
orig->sidcount));
RET_NOMEM(info3->sids);