Skip to contentSkip to conversation

cramfs: explicitly state type of unsigned int

PATCH New Adrian McMenamin 1 participant 1 message Feb 3, 2009 Cramfs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cramfs: explicitly state type of unsigned int

I was using cramfs as a model for a new filesystem and came across this, rather confusing issue...

These variables are currently declared with only a type modifier, not a type.

---

fs/cramfs/inode.c +1 -1
index a07338d..d9210bc 100644
@@ -136,7 +136,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
 {
 	struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
 	struct page *pages[BLKS_PER_BUF];
-	unsigned i, blocknr, buffer;
+	unsigned int i, blocknr, buffer;
 	unsigned long devsize;
 	char *data;