summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-09-29 10:45:19 +0200
committerJeremy Allison <jra@samba.org>2022-10-03 20:03:32 +0000
commit4b3bfbaf0f2179bc6a8172dbec62128c0db74dbc (patch)
tree5d5398d42fcd9563ec4473c758b976a7e08d952e /source3
parentd257c760a53246857afa223b528a8066a00c8940 (diff)
downloadsamba-4b3bfbaf0f2179bc6a8172dbec62128c0db74dbc.tar.gz
torture3: Align integer types
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/denytest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/torture/denytest.c b/source3/torture/denytest.c
index 87f06618cea..7fb78bda136 100644
--- a/source3/torture/denytest.c
+++ b/source3/torture/denytest.c
@@ -75,7 +75,7 @@ static const char *resultstr(enum deny_result res)
{A_R, "R"},
{A_W, "W"},
{A_RW,"RW"}};
- int i;
+ size_t i;
for (i=0;i<ARRAY_SIZE(results);i++) {
if (results[i].res == res) return results[i].name;
}
@@ -1410,11 +1410,10 @@ bool torture_denytest1(int dummy)
{
struct cli_state *cli1;
uint16_t fnum1, fnum2;
- int i;
bool correct = True;
NTSTATUS ret1, ret2, status;
const char *fnames[2] = {"\\denytest1.dat", "\\denytest1.exe"};
- size_t nread;
+ size_t i, nread;
if (!torture_open_connection(&cli1, 0)) {
return False;