1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r20355: Fix some C++ warnings

(This used to be commit f103c301b1)
This commit is contained in:
Volker Lendecke 2006-12-27 10:26:32 +00:00 committed by Gerald (Jerry) Carter
parent 96a2972bd2
commit 9f2807fc93
2 changed files with 3 additions and 3 deletions

View File

@ -374,7 +374,7 @@ BOOL winbind_sids_to_unixids(struct id_map *ids, int num_ids)
request.extra_len = num_ids * sizeof(DOM_SID);
sids = SMB_MALLOC(request.extra_len);
sids = (DOM_SID *)SMB_MALLOC(request.extra_len);
for (i = 0; i < num_ids; i++) {
sid_copy(&sids[i], ids[i].sid);
}

View File

@ -256,7 +256,7 @@ void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
struct winbindd_request request;
ZERO_STRUCT(request);
request.cmd = WINBINDD_DUAL_SIDS2XIDS;
request.extra_data.data = sids;
request.extra_data.data = (char *)sids;
request.extra_len = size;
do_async(mem_ctx, idmap_child(), &request, winbindd_sids2xids_recv,
(void *)cont, private_data);
@ -1516,7 +1516,7 @@ void winbindd_dump_maps_async(TALLOC_CTX *mem_ctx, void *data, int size,
struct winbindd_request request;
ZERO_STRUCT(request);
request.cmd = WINBINDD_DUAL_DUMP_MAPS;
request.extra_data.data = data;
request.extra_data.data = (char *)data;
request.extra_len = size;
do_async(mem_ctx, idmap_child(), &request, winbindd_dump_id_maps_recv,
(void *)cont, private_data);