mtd/fs/jffs2 wbuf.c,1.44,1.45

David Woodhouse dwmw2 at infradead.org
Fri Oct 3 12:17:11 EDT 2003


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv3566

Modified Files:
	wbuf.c 
Log Message:
make BREAKME not break

Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- wbuf.c	3 Oct 2003 16:01:57 -0000	1.44
+++ wbuf.c	3 Oct 2003 16:17:09 -0000	1.45
@@ -233,7 +233,8 @@
 		ret = c->mtd->write_ecc(c->mtd, ofs, (end-start)%c->wbuf_pagesize,
 					&retlen, buf, NULL, c->oobinfo);
 #ifdef BREAKME
-		if (static int breakme++ == 40) {
+		static int breakme;
+		if (breakme++ == 40) {
 			breakme = 0;
 			ret = -EIO;
 		}
@@ -373,7 +374,8 @@
 	ret = c->mtd->write_ecc(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, c->wbuf, NULL, c->oobinfo);
 
 #ifdef BREAKME
-	if (static int breakme++ == 40) {
+	static int breakme;
+	if (breakme++ == 40) {
 		breakme = 0;
 		ret = -EIO;
 	}




More information about the linux-mtd-cvs mailing list