diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-22 05:14:14 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-22 05:14:14 +0200 |
commit | c0e14d5021e738a9b89c73558c544596e2ad2000 (patch) | |
tree | 1d4c5543f1b38eb8e1b05df87a34e8456826a8b3 /source4/torture/winbind | |
parent | 1d5beb7294d939504864c9b1203a5d7dcde7041a (diff) | |
download | samba-c0e14d5021e738a9b89c73558c544596e2ad2000.tar.gz samba-c0e14d5021e738a9b89c73558c544596e2ad2000.tar.bz2 samba-c0e14d5021e738a9b89c73558c544596e2ad2000.zip |
Repel pstring to nsswitch/.
Diffstat (limited to 'source4/torture/winbind')
-rw-r--r-- | source4/torture/winbind/struct_based.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c index c27ab24a4d..676b85e467 100644 --- a/source4/torture/winbind/struct_based.c +++ b/source4/torture/winbind/struct_based.c @@ -19,7 +19,6 @@ */ #include "includes.h" -#include "pstring.h" #include "torture/torture.h" #include "torture/winbind/proto.h" #include "nsswitch/winbind_client.h" @@ -275,7 +274,7 @@ static bool get_trusted_domains(struct torture_context *torture, struct winbindd_response rep; struct torture_trust_domain *d = NULL; uint32_t dcount = 0; - fstring line; + char line[256]; const char *extra_data; ZERO_STRUCT(req); @@ -290,7 +289,7 @@ static bool get_trusted_domains(struct torture_context *torture, torture_assert(torture, extra_data, "NULL trust list"); - while (next_token(&extra_data, line, "\n", sizeof(fstring))) { + while (next_token(&extra_data, line, "\n", sizeof(line))) { char *p, *lp; d = talloc_realloc(torture, d, @@ -583,7 +582,7 @@ static bool get_user_list(struct torture_context *torture, char ***users) struct winbindd_response rep; char **u = NULL; uint32_t count; - fstring name; + char name[256]; const char *extra_data; ZERO_STRUCT(req); @@ -595,7 +594,7 @@ static bool get_user_list(struct torture_context *torture, char ***users) torture_assert(torture, extra_data, "NULL extra data"); for(count = 0; - next_token(&extra_data, name, ",", sizeof(fstring)); + next_token(&extra_data, name, ",", sizeof(name)); count++) { u = talloc_realloc(torture, u, char *, count + 2); @@ -633,7 +632,7 @@ static bool get_group_list(struct torture_context *torture, char ***groups) struct winbindd_response rep; char **g = NULL; uint32_t count; - fstring name; + char name[256]; const char *extra_data; ZERO_STRUCT(req); @@ -645,7 +644,7 @@ static bool get_group_list(struct torture_context *torture, char ***groups) torture_assert(torture, extra_data, "NULL extra data"); for(count = 0; - next_token(&extra_data, name, ",", sizeof(fstring)); + next_token(&extra_data, name, ",", sizeof(name)); count++) { g = talloc_realloc(torture, g, char *, count + 2); @@ -688,7 +687,7 @@ static bool get_sequence_numbers(struct torture_context *torture, struct winbindd_request req; struct winbindd_response rep; const char *extra_data; - fstring line; + char line[256]; uint32_t count = 0; struct torture_domain_sequence *s = NULL; @@ -700,7 +699,7 @@ static bool get_sequence_numbers(struct torture_context *torture, extra_data = (char *)rep.extra_data.data; torture_assert(torture, extra_data, "NULL sequence list"); - while (next_token(&extra_data, line, "\n", sizeof(fstring))) { + while (next_token(&extra_data, line, "\n", sizeof(line))) { char *p, *lp; uint32_t seq; |