mtd/drivers/mtd nftlmount.c,1.37,1.38

David Woodhouse dwmw2 at infradead.org
Wed Oct 20 19:20:29 EDT 2004


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv27946

Modified Files:
	nftlmount.c 
Log Message:
size_t fixes from viro

Index: nftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlmount.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- nftlmount.c	16 Sep 2004 23:32:37 -0000	1.37
+++ nftlmount.c	20 Oct 2004 23:20:26 -0000	1.38
@@ -268,7 +268,8 @@
 static int check_free_sectors(struct NFTLrecord *nftl, unsigned int address, int len, 
 			      int check_oob)
 {
-	int i, retlen;
+	int i;
+	size_t retlen;
 	u8 buf[SECTORSIZE + nftl->mbd.mtd->oobsize];
 
 	for (i = 0; i < len; i += SECTORSIZE) {
@@ -365,7 +366,8 @@
 {
 	unsigned int block, i, status;
 	struct nftl_bci bci;
-	int sectors_per_block, retlen;
+	int sectors_per_block;
+	size_t retlen;
 
 	sectors_per_block = nftl->EraseSize / SECTORSIZE;
 	block = first_block;





More information about the linux-mtd-cvs mailing list