lkml.org 
[lkml]   [2009]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] cramfs: explicitly state type of unsigned int
From
Date
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.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
---


diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index a07338d..d9210bc 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -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;


\
 
 \ /
  Last update: 2009-02-04 00:23    [W:0.024 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site