diff options
author | Günther Deschner <gd@samba.org> | 2014-11-14 14:12:26 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-11-17 19:53:22 +0100 |
commit | a62cc2ce447870b4f4ab6ebf9c8d999af054d06f (patch) | |
tree | 17af40d5a9209790a4699e573842e0a75b48af21 /source4 | |
parent | ee8ddb8e02f70e9d6050490d96a87e4fd2297a05 (diff) | |
download | samba-a62cc2ce447870b4f4ab6ebf9c8d999af054d06f.tar.gz samba-a62cc2ce447870b4f4ab6ebf9c8d999af054d06f.tar.xz samba-a62cc2ce447870b4f4ab6ebf9c8d999af054d06f.zip |
samba: pass down size_t instead of int to add_string_to_array().
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Nov 17 19:53:22 CET 2014 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/samba3rpc.c | 4 | ||||
-rw-r--r-- | source4/torture/rpc/samr.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/wkssvc.c | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c index 406eb9ab05..ff1a53ca31 100644 --- a/source4/torture/rpc/samba3rpc.c +++ b/source4/torture/rpc/samba3rpc.c @@ -2634,7 +2634,7 @@ static bool rap_get_servername(struct torture_context *tctx, static bool find_printers(struct torture_context *tctx, struct dcerpc_pipe *p, const char ***printers, - int *num_printers) + size_t *num_printers) { struct srvsvc_NetShareEnum r; struct srvsvc_NetShareInfoCtr info_ctr; @@ -2771,7 +2771,7 @@ static bool torture_samba3_rpc_spoolss(struct torture_context *torture) struct dcerpc_binding_handle *b; struct policy_handle server_handle, printer_handle; const char **printers; - int num_printers; + size_t num_printers; struct spoolss_UserLevel1 userlevel1; char *servername; diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 7dfd1833d2..293b6722cc 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -7258,7 +7258,7 @@ static bool test_GroupList(struct dcerpc_binding_handle *b, uint32_t returned_size; union samr_DispInfo info; - int num_names = 0; + size_t num_names = 0; const char **names = NULL; bool builtin_domain = dom_sid_compare(domain_sid, diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c index 5bf64afa26..09272004ef 100644 --- a/source4/torture/rpc/wkssvc.c +++ b/source4/torture/rpc/wkssvc.c @@ -530,7 +530,7 @@ static bool test_NetrEnumerateComputerNames_level(struct torture_context *tctx, struct dcerpc_pipe *p, uint16_t level, const char ***names, - int *num_names) + size_t *num_names) { NTSTATUS status; struct wkssvc_NetrEnumerateComputerNames r; @@ -666,7 +666,7 @@ static bool test_NetrAddAlternateComputerName(struct torture_context *tctx, NTSTATUS status; struct wkssvc_NetrAddAlternateComputerName r; const char **names = NULL; - int num_names = 0; + size_t num_names = 0; int i; struct dcerpc_binding_handle *b = p->binding_handle; @@ -708,7 +708,7 @@ static bool test_NetrRemoveAlternateComputerName(struct torture_context *tctx, NTSTATUS status; struct wkssvc_NetrRemoveAlternateComputerName r; const char **names = NULL; - int num_names = 0; + size_t num_names = 0; int i; struct dcerpc_binding_handle *b = p->binding_handle; @@ -781,7 +781,7 @@ static bool test_NetrSetPrimaryComputername(struct torture_context *tctx, */ const char **names_o = NULL, **names = NULL; - int num_names_o = 0, num_names = 0; + size_t num_names_o = 0, num_names = 0; torture_comment(tctx, "Testing NetrSetPrimaryComputername\n"); @@ -887,7 +887,7 @@ static bool test_NetrRenameMachineInDomain2(struct torture_context *tctx, struct dcerpc_pipe *p) { const char **names_o = NULL, **names = NULL; - int num_names_o = 0, num_names = 0; + size_t num_names_o = 0, num_names = 0; torture_comment(tctx, "Testing NetrRenameMachineInDomain2\n"); |