diff options
author | Volker Lendecke <vl@samba.org> | 2009-05-03 22:45:42 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-03 22:48:31 +0200 |
commit | 4949a2cfaa13fc0311a209c5e72eee0378e8b35a (patch) | |
tree | be897f4dbc90c817c3a1612ccf6c633ba8af8233 /source3/torture | |
parent | 38cb53cdeb44873be70063d30dda5e4597fc11b7 (diff) | |
download | samba-4949a2cfaa13fc0311a209c5e72eee0378e8b35a.tar.gz samba-4949a2cfaa13fc0311a209c5e72eee0378e8b35a.tar.bz2 samba-4949a2cfaa13fc0311a209c5e72eee0378e8b35a.zip |
Fix some warnings due to uint16_t!=-1 always being true
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 1f8ef7ecfb..be2a854aaf 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -553,7 +553,7 @@ static bool rw_torture3(struct cli_state *c, char *lockfname) } else { - for (i = 0; i < 500 && fnum == -1; i++) + for (i = 0; i < 500 && fnum == (uint16_t)-1; i++) { status = cli_open(c, lockfname, O_RDONLY, DENY_NONE, &fnum); @@ -3380,8 +3380,8 @@ static bool run_deletetest(int dummy) * intialized, because these functions don't handle * uninitialized connections. */ - if (fnum1 != -1) cli_close(cli1, fnum1); - if (fnum2 != -1) cli_close(cli1, fnum2); + if (fnum1 != (uint16_t)-1) cli_close(cli1, fnum1); + if (fnum2 != (uint16_t)-1) cli_close(cli1, fnum2); cli_setatr(cli1, fname, 0, 0); cli_unlink(cli1, fname, aSYSTEM | aHIDDEN); @@ -3835,7 +3835,7 @@ static bool run_opentest(int dummy) printf("testing ctemp\n"); fnum1 = cli_ctemp(cli1, "\\", &tmp_path); - if (fnum1 == -1) { + if (fnum1 == (uint16_t)-1) { printf("ctemp failed (%s)\n", cli_errstr(cli1)); return False; } |