diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-14 12:41:46 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-14 22:22:10 +0200 |
commit | 97ba4f6efdcdb1e4f5d43ddeadfd06c7d96213f4 (patch) | |
tree | 9665af595482be569ce44083012945469979fe33 /source3/winbindd/winbindd_async.c | |
parent | 90535b5fad513bb44c31b91557347486c8688482 (diff) | |
download | samba-97ba4f6efdcdb1e4f5d43ddeadfd06c7d96213f4.tar.gz |
Make winbindd_cli_state->response a pointer instead of a struct member
Same comment as in baa6084378e530b: This is just a preparatory checkin.
Volker
Diffstat (limited to 'source3/winbindd/winbindd_async.c')
-rw-r--r-- | source3/winbindd/winbindd_async.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c index 966a3b3456d..56175e26598 100644 --- a/source3/winbindd/winbindd_async.c +++ b/source3/winbindd/winbindd_async.c @@ -255,9 +255,9 @@ enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain, return WINBINDD_ERROR; } - fstrcpy(state->response.data.name.dom_name, dom_name); - fstrcpy(state->response.data.name.name, name); - state->response.data.name.type = type; + fstrcpy(state->response->data.name.dom_name, dom_name); + fstrcpy(state->response->data.name.name, name); + state->response->data.name.type = type; TALLOC_FREE(dom_name); TALLOC_FREE(name); @@ -447,8 +447,8 @@ enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain, return WINBINDD_ERROR; } - sid_to_fstring(state->response.data.sid.sid, &sid); - state->response.data.sid.type = type; + sid_to_fstring(state->response->data.sid.sid, &sid); + state->response->data.sid.type = type; return WINBINDD_OK; } @@ -501,7 +501,7 @@ enum winbindd_result winbindd_dual_list_users(struct winbindd_domain *domain, uint32_t extra_data_len = 0, i; /* Must copy domain into response first for debugging in parent */ - fstrcpy(state->response.data.name.dom_name, domain->name); + fstrcpy(state->response->data.name.dom_name, domain->name); /* Query user info */ methods = domain->methods; @@ -545,8 +545,8 @@ enum winbindd_result winbindd_dual_list_users(struct winbindd_domain *domain, if (extra_data) { /* remove trailing ',' */ extra_data[extra_data_len - 1] = '\0'; - state->response.extra_data.data = extra_data; - state->response.length += extra_data_len; + state->response->extra_data.data = extra_data; + state->response->length += extra_data_len; } return WINBINDD_OK; @@ -562,7 +562,7 @@ enum winbindd_result winbindd_dual_list_groups(struct winbindd_domain *domain, ZERO_STRUCT(groups); /* Must copy domain into response first for debugging in parent */ - fstrcpy(state->response.data.name.dom_name, domain->name); + fstrcpy(state->response->data.name.dom_name, domain->name); fstrcpy(groups.domain_name, domain->name); /* Get list of sam groups */ @@ -603,8 +603,8 @@ enum winbindd_result winbindd_dual_list_groups(struct winbindd_domain *domain, if (extra_data) { /* remove trailing ',' */ extra_data[extra_data_len - 1] = '\0'; - state->response.extra_data.data = extra_data; - state->response.length += extra_data_len; + state->response->extra_data.data = extra_data; + state->response->length += extra_data_len; } return WINBINDD_OK; @@ -734,11 +734,11 @@ enum winbindd_result winbindd_dual_lookuprids(struct winbindd_domain *domain, "%d %s\n", types[i], names[i]); } - fstrcpy(state->response.data.domain_name, domain_name); + fstrcpy(state->response->data.domain_name, domain_name); if (result != NULL) { - state->response.extra_data.data = result; - state->response.length += len+1; + state->response->extra_data.data = result; + state->response->length += len+1; } return WINBINDD_OK; |