summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-04 22:56:39 +0000
committerTim Potter <tpot@samba.org>2002-04-04 22:56:39 +0000
commitf18b466bf6168ea7af6857647347b1776ae50c01 (patch)
tree55d997a75c7b4dbef35d4f65665743f33a0dc757 /source3
parentb3d31d389766b9da7ca9f41a1793e59955a6a75d (diff)
downloadsamba-f18b466bf6168ea7af6857647347b1776ae50c01.tar.gz
samba-f18b466bf6168ea7af6857647347b1776ae50c01.tar.bz2
samba-f18b466bf6168ea7af6857647347b1776ae50c01.zip
Fixed some compile warnings.
(This used to be commit fd8b3009eb3f3debc7a1dcf6a46437d87a341519)
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/nbio.c2
-rw-r--r--source3/torture/torture.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/nbio.c b/source3/torture/nbio.c
index 40533fe48a..0d6955c879 100644
--- a/source3/torture/nbio.c
+++ b/source3/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/source3/torture/torture.c b/source3/torture/torture.c
index fc63ac341b..29eeb802ff 100644
--- a/source3/torture/torture.c
+++ b/source3/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;
}