diff options
author | robi <robi> | 2012-02-19 17:38:07 +0000 |
---|---|---|
committer | robi <robi> | 2012-02-19 17:38:07 +0000 |
commit | bf74ad294f506a72d5ae671480ad7b88f3be07df (patch) | |
tree | 385c3ba03bf1ab77ff97df0f8c4f664c9fe90593 /src/block.c | |
parent | 2698ce16c465c39085bee3b20b65c962fdb78530 (diff) |
some small bugs and many gcc warnings
Diffstat (limited to 'src/block.c')
-rw-r--r-- | src/block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/block.c b/src/block.c index 29d8afb..84fc1bb 100644 --- a/src/block.c +++ b/src/block.c @@ -115,7 +115,7 @@ int read_block ( ext2_filsys fs, blk_t *blocknr, void *buf ) { errcode_t retval = io_channel_read_blk ( fs->io, *blocknr, 1, buf ); if (retval) - fprintf(stderr,"Error %d while read block\n", retval); + fprintf(stderr,"Error %d while read block\n", (int)retval); return retval; } #ifdef EXT2_FLAG_64BITS @@ -123,7 +123,7 @@ int read_block64 ( ext2_filsys fs, blk64_t *blocknr, void *buf ) { errcode_t retval = io_channel_read_blk64 ( fs->io, *blocknr, 1, buf ); if (retval) - fprintf(stderr,"Error %d while read block\n", retval); + fprintf(stderr,"Error %d while read block\n", (int)retval); return retval; } #endif @@ -136,7 +136,7 @@ errcode_t local_ext2fs_extent_open(ext2_filsys fs, struct ext2_inode inode, struct ext2_extent_handle *handle; struct ext3_extent_header *eh; - int i; + int i; errcode_t retval; retval = ext2fs_get_mem(sizeof(struct ext2_extent_handle), &handle); if (retval) @@ -194,7 +194,7 @@ errcode_t local_ext2fs_extent_open(ext2_filsys fs, struct ext2_inode inode, static int mark_extent_block(ext2_filsys fs, char *extent_block ){ struct ext3_extent_header *eh; struct ext3_extent_idx *idx; - int i, ret; + int i, ret = 0 ; #ifdef EXT2_FLAG_64BITS blk64_t index_bl; #else |