]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Align integer types
authorVolker Lendecke <vl@samba.org>
Mon, 7 Feb 2022 14:19:35 +0000 (15:19 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 11 Feb 2022 20:54:37 +0000 (20:54 +0000)
finfo.stream_info.out.num_streams is declared as "unsigned int"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/streams.c

index c5ece0d9bcbc403e6ea2a7384a47a15b0f01edfe..dee8f8afc9d0c3c65151142a68d31683962ab915 100644 (file)
@@ -155,13 +155,13 @@ static bool check_stream(struct torture_context *tctx,
 static bool check_stream_list(struct smb2_tree *tree,
                              struct torture_context *tctx,
                              const char *fname,
-                             int num_exp,
+                             unsigned int num_exp,
                              const char **exp,
                              struct smb2_handle h)
 {
        union smb_fileinfo finfo;
        NTSTATUS status;
-       int i;
+       unsigned int i;
        TALLOC_CTX *tmp_ctx = talloc_new(tctx);
        char **exp_sort;
        struct stream_struct *stream_sort;