From 1a1fc2f8146ebc6cda852b236c9589e282e4bd8c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 May 2008 13:51:14 +0200 Subject: [PATCH] Fix two c++ warnings (This used to be commit 3b1dae7c31b881834ca4494c4434ae97a56ce6c7) --- source3/winbindd/winbindd_async.c | 2 +- source3/winbindd/winbindd_group.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c index 635bc6b244f..bc0f9d836b4 100644 --- a/source3/winbindd/winbindd_async.c +++ b/source3/winbindd/winbindd_async.c @@ -468,7 +468,7 @@ static void listgroups_recv(TALLOC_CTX *mem_ctx, bool success, } cont(private_data, True, response->data.name.dom_name, - response->extra_data.data); + (char *)response->extra_data.data); SAFE_FREE(response->extra_data.data); } diff --git a/source3/winbindd/winbindd_group.c b/source3/winbindd/winbindd_group.c index dd2fc6f6b5f..d10609a83f1 100644 --- a/source3/winbindd/winbindd_group.c +++ b/source3/winbindd/winbindd_group.c @@ -1412,7 +1412,8 @@ static void listgroups_recv(void *private_data, bool success, fstring dom_name, { /* extra_data comes to us as a '\0' terminated string of comma separated groups */ - struct listgroups_state *state = private_data; + struct listgroups_state *state = talloc_get_type_abort( + private_data, struct listgroups_state); /* Append groups from one domain onto the whole list */ if (extra_data) { -- 2.34.1