summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_group.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-02-01 23:59:53 -0800
committerTim Prouty <tprouty@samba.org>2009-02-02 00:03:09 -0800
commit10e9e95ce8bb94c6a2547dd1148cd20a171b3583 (patch)
tree5dfeae89d483495dccc5f9525d234228e88f611a /source3/winbindd/winbindd_group.c
parentd96248a9b46559552f53b0ecd3861387ea7ff050 (diff)
downloadsamba-10e9e95ce8bb94c6a2547dd1148cd20a171b3583.tar.gz
samba-10e9e95ce8bb94c6a2547dd1148cd20a171b3583.tar.bz2
samba-10e9e95ce8bb94c6a2547dd1148cd20a171b3583.zip
s3 build: Fix "assignment discards qualifiers from pointer target type" warnings
Diffstat (limited to 'source3/winbindd/winbindd_group.c')
-rw-r--r--source3/winbindd/winbindd_group.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/winbindd/winbindd_group.c b/source3/winbindd/winbindd_group.c
index 48e6577902..9d9b264124 100644
--- a/source3/winbindd/winbindd_group.c
+++ b/source3/winbindd/winbindd_group.c
@@ -1306,7 +1306,6 @@ void winbindd_getgrent(struct winbindd_cli_state *state)
char *gr_mem;
DOM_SID group_sid;
struct winbindd_domain *domain;
- char *domain_name_idmap;
/* Do we need to fetch another chunk of groups? */
@@ -1354,11 +1353,8 @@ void winbindd_getgrent(struct winbindd_cli_state *state)
sid_copy(&group_sid, &domain->sid);
sid_append_rid(&group_sid, name_list[ent->sam_entry_index].rid);
- domain_name_idmap = domain->have_idmap_config
- ? domain->name
- : "";
-
- if (!NT_STATUS_IS_OK(idmap_sid_to_gid(domain_name_idmap,
+ if (!NT_STATUS_IS_OK(idmap_sid_to_gid(domain->have_idmap_config
+ ? domain->name : "",
&group_sid, &group_gid)))
{
union unid_t id;