diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-04 19:47:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:24 -0500 |
commit | f8a17bd8bdbb52b200671e7ed52ffd982419f3f6 (patch) | |
tree | d1cfcad8ec932b033913ea210c6852fa7ad7e38a /source3/nsswitch | |
parent | c49961b785b42aa6ce8ca852f268356b64d50dcc (diff) | |
download | samba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.tar.gz samba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.tar.bz2 samba-f8a17bd8bdbb52b200671e7ed52ffd982419f3f6.zip |
r18047: More C++ stuff
(This used to be commit 86f4ca84f2df2aa8977eb24828e3aa840dda7201)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_async.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_async.c b/source3/nsswitch/winbindd_async.c index 696f3501ef..bb8b523246 100644 --- a/source3/nsswitch/winbindd_async.c +++ b/source3/nsswitch/winbindd_async.c @@ -169,8 +169,9 @@ enum winbindd_result winbindd_dual_idmapset(struct winbindd_domain *domain, else id.gid = state->request.data.dual_idmapset.gid; - result = idmap_set_mapping(&sid, id, - state->request.data.dual_idmapset.type); + result = idmap_set_mapping( + &sid, id, + (enum idmap_type)state->request.data.dual_idmapset.type); return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR; } @@ -1559,7 +1560,8 @@ void winbindd_uid2sid_async(TALLOC_CTX *mem_ctx, uid_t uid, ZERO_STRUCT(request); request.cmd = WINBINDD_DUAL_UID2SID; request.data.uid = uid; - do_async(mem_ctx, idmap_child(), &request, winbindd_uid2sid_recv, cont, private_data); + do_async(mem_ctx, idmap_child(), &request, winbindd_uid2sid_recv, + (void *)cont, private_data); } enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain, @@ -1615,7 +1617,8 @@ void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid, ZERO_STRUCT(request); request.cmd = WINBINDD_DUAL_GID2SID; request.data.gid = gid; - do_async(mem_ctx, idmap_child(), &request, winbindd_gid2sid_recv, cont, private_data); + do_async(mem_ctx, idmap_child(), &request, winbindd_gid2sid_recv, + (void *)cont, private_data); } enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain, |