From 3e819bd22c199f9cdf68c0f6258b4be17674a129 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Apr 2007 06:44:30 +0000 Subject: r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25 if appropriate. Volker (This used to be commit 6a4f6c5177b4837fe7a238f067abbc5739ab0812) --- source3/nsswitch/idmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c index 3a3c2bf05f..dac1eb0521 100644 --- a/source3/nsswitch/idmap.c +++ b/source3/nsswitch/idmap.c @@ -828,7 +828,11 @@ static NTSTATUS idmap_new_mapping(TALLOC_CTX *ctx, struct id_map *map) wbret = winbind_lookup_sid(ctx, map->sid, &domname, &name, &sid_type); winbind_off(); } else { - wbret = winbindd_lookup_name_by_sid(ctx, map->sid, &domname, &name, &sid_type); + char *tmp_dom, *tmp_name; + wbret = winbindd_lookup_name_by_sid(ctx, map->sid, &tmp_dom, + &tmp_name, &sid_type); + domname = tmp_dom; + name = tmp_name; } /* check if this is a valid SID and then map it */ -- cgit