]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Align an integer type
authorVolker Lendecke <vl@samba.org>
Thu, 27 Jan 2022 20:52:31 +0000 (21:52 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 1 Feb 2022 19:09:34 +0000 (19:09 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/create.c

index 41a6ed6e4e407fb458435bc21c96113b0a17138a..4327fea9cc7f0c0ab509fa1203b76ad3f71eb1ac 100644 (file)
@@ -709,7 +709,7 @@ static bool test_smb2_open(struct torture_context *tctx,
        struct smb2_handle h = {{0}};
        struct smb2_handle h1 = {{0}};
        bool ret = true;
-       int i;
+       size_t i;
        struct {
                uint32_t create_disp;
                bool with_file;
@@ -760,7 +760,7 @@ static bool test_smb2_open(struct torture_context *tctx,
                        status= smb2_create(tree, tctx, &(io.smb2));
                        if (!NT_STATUS_IS_OK(status)) {
                                torture_comment(tctx,
-                                   "Failed to create file %s status %s %d\n",
+                                   "Failed to create file %s status %s %zu\n",
                                    fname, nt_errstr(status), i);
 
                                ret = false;
@@ -772,7 +772,7 @@ static bool test_smb2_open(struct torture_context *tctx,
                status = smb2_create(tree, tctx, &(io.smb2));
                if (!NT_STATUS_EQUAL(status, open_funcs[i].correct_status)) {
                        torture_comment(tctx,
-                           "(%s) incorrect status %s should be %s (i=%d "
+                           "(%s) incorrect status %s should be %s (i=%zu "
                            "with_file=%d open_disp=%d)\n",
                         __location__, nt_errstr(status),
                        nt_errstr(open_funcs[i].correct_status),