diff options
author | Stefan Metzmacher <metze@sernet.de> | 2007-12-11 15:08:18 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-11 16:51:44 +0100 |
commit | af3cc957f003444ef1f0ef13afbed2ed4e8ea264 (patch) | |
tree | 03f0d746a618e08eb94d3d934e6dc6fdad3239eb /source3/winbindd/winbindd_idmap.c | |
parent | a347ff84bcc86a54327e2bb15640c4540de44bfb (diff) | |
download | samba-af3cc957f003444ef1f0ef13afbed2ed4e8ea264.tar.gz |
winbindd: pass const char *logfile to winbindd_dump_maps_async()
metze
(This used to be commit a52237e3a10aa4ac15cd9e7b859a54c46bfa9cdf)
Diffstat (limited to 'source3/winbindd/winbindd_idmap.c')
-rw-r--r-- | source3/winbindd/winbindd_idmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c index 379e7b51eaa..be090afbf1e 100644 --- a/source3/winbindd/winbindd_idmap.c +++ b/source3/winbindd/winbindd_idmap.c @@ -772,15 +772,15 @@ static void winbindd_dump_id_maps_recv(TALLOC_CTX *mem_ctx, bool success, cont(private_data, True); } -void winbindd_dump_maps_async(TALLOC_CTX *mem_ctx, void *data, int size, +void winbindd_dump_maps_async(TALLOC_CTX *mem_ctx, const char *logfile, void (*cont)(void *private_data, bool success), void *private_data) { struct winbindd_request request; ZERO_STRUCT(request); request.cmd = WINBINDD_DUAL_DUMP_MAPS; - request.extra_data.data = (char *)data; - request.extra_len = size; + request.extra_data.data = discard_const(logfile); + request.extra_len = strlen(logfile)+1; do_async(mem_ctx, idmap_child(), &request, winbindd_dump_id_maps_recv, (void *)cont, private_data); } |