Fixed some compile warnings.
authorTim Potter <tpot@samba.org>
Thu, 4 Apr 2002 22:56:39 +0000 (22:56 +0000)
committerTim Potter <tpot@samba.org>
Thu, 4 Apr 2002 22:56:39 +0000 (22:56 +0000)
(This used to be commit fd8b3009eb3f3debc7a1dcf6a46437d87a341519)

source3/torture/nbio.c
source3/torture/torture.c

index 40533fe48aac5c8ac024f7c74b1c79a29b2508e4..0d6955c879ac9bad39cca71fef2c6a99cb0bb12f 100644 (file)
@@ -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 */
 }
 
 
index fc63ac341b2263e4d9f2c20b9273f75eb7ecf0ae..29eeb802ffe2d37855567794c9d37d17233b7d13 100644 (file)
@@ -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;
        }