diff options
author | Tim Potter <tpot@samba.org> | 2002-04-04 22:56:39 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-04-04 22:56:39 +0000 |
commit | fd8b3009eb3f3debc7a1dcf6a46437d87a341519 (patch) | |
tree | 056fc1c2928c3db7314f30504e6f71f296848bde /source/torture | |
parent | 21c3dff4109a6a4dc6a1b618a489e49e88743d42 (diff) | |
download | samba-fd8b3009eb3f3debc7a1dcf6a46437d87a341519.tar.gz samba-fd8b3009eb3f3debc7a1dcf6a46437d87a341519.tar.xz samba-fd8b3009eb3f3debc7a1dcf6a46437d87a341519.zip |
Fixed some compile warnings.
Diffstat (limited to 'source/torture')
-rw-r--r-- | source/torture/nbio.c | 2 | ||||
-rw-r--r-- | source/torture/torture.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/torture/nbio.c b/source/torture/nbio.c index 40533fe48aa..0d6955c879a 100644 --- a/source/torture/nbio.c +++ b/source/torture/nbio.c @@ -89,6 +89,8 @@ static int find_handle(int handle) printf("(%d) ERROR: handle %d was not found\n", line_count, handle); exit(1); + + return -1; /* Not reached */ } diff --git a/source/torture/torture.c b/source/torture/torture.c index fc63ac341b2..29eeb802ffe 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -3276,7 +3276,7 @@ static BOOL run_opentest(int dummy) FILE_SHARE_NONE, FILE_OPEN_IF, 0); if (fnum2 != -1) { - printf("test 4 open 2 of %s SUCCEEDED - should have failed\n", fname, cli_errstr(&cli2)); + printf("test 4 open 2 of %s SUCCEEDED - should have failed (%s)\n", fname, cli_errstr(&cli2)); return False; } @@ -3369,7 +3369,7 @@ static BOOL run_opentest(int dummy) FILE_SHARE_READ|FILE_SHARE_DELETE, FILE_OPEN_IF, 0); if (fnum2 != -1) { - printf("test 7 open 2 of %s SUCCEEDED - should have failed\n", fname, cli_errstr(&cli2)); + printf("test 7 open 2 of %s SUCCEEDED - should have failed (%s)\n", fname, cli_errstr(&cli2)); return False; } |