svn commit: samba r14980 - in branches/SAMBA_4_0/source/torture: .

tridge at samba.org tridge at samba.org
Sat Apr 8 02:55:17 GMT 2006


Author: tridge
Date: 2006-04-08 02:55:16 +0000 (Sat, 08 Apr 2006)
New Revision: 14980

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14980

Log:

fixed several IBM checker errors in gentest and masktest

Modified:
   branches/SAMBA_4_0/source/torture/gentest.c
   branches/SAMBA_4_0/source/torture/masktest.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/gentest.c
===================================================================
--- branches/SAMBA_4_0/source/torture/gentest.c	2006-04-08 02:49:44 UTC (rev 14979)
+++ branches/SAMBA_4_0/source/torture/gentest.c	2006-04-08 02:55:16 UTC (rev 14980)
@@ -656,6 +656,8 @@
 			       "ASOMEWHATLONGERATTRIBUTEVALUE"};
 	int i;
 
+	ZERO_STRUCT(ea);
+
 	do {
 		i = gen_int_range(0, ARRAY_SIZE(names)-1);
 	} while (ignore_pattern(names[i]));
@@ -725,7 +727,6 @@
 static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, uint16_t fnum, uint8_t level, void *private)
 {
 	union smb_close io;
-	NTSTATUS status;
 	int i, j;
 	BOOL do_close;
 	struct smbcli_tree *tree = NULL;
@@ -766,8 +767,7 @@
 	req = smb_raw_close_send(tree, &io);
 
 	if (req == NULL) {
-		printf("WARNING: close failed in oplock_handler_close - %s\n", 
-		       nt_errstr(status));
+		printf("WARNING: close failed in oplock_handler_close\n");
 		return False;
 	}
 
@@ -1823,6 +1823,7 @@
 	struct smb_notify parm[NSERVERS];
 	int n;
 
+	ZERO_STRUCT(parm[0]);
 	parm[0].in.buffer_size = gen_io_count();
 	parm[0].in.completion_filter = gen_bits_mask(0xFF);
 	parm[0].in.file.fnum = gen_fnum(instance);

Modified: branches/SAMBA_4_0/source/torture/masktest.c
===================================================================
--- branches/SAMBA_4_0/source/torture/masktest.c	2006-04-08 02:49:44 UTC (rev 14979)
+++ branches/SAMBA_4_0/source/torture/masktest.c	2006-04-08 02:55:16 UTC (rev 14980)
@@ -182,6 +182,8 @@
 	smbcli_unlink(cli->tree, file);
 
 	if (count % 100 == 0) DEBUG(0,("%d\n", count));
+
+	resultp = NULL;
 }
 
 static void test_mask(int argc, char *argv[], 



More information about the samba-cvs mailing list