diff options
author | Theodore Ts'o <tytso@mit.edu> | 2001-12-16 23:23:37 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2001-12-16 23:23:37 -0500 |
commit | 4ea7bd04390935e1f8b473c8b857e518df2e226b (patch) | |
tree | 522193270e7d1c89b7bacc8a7df6486dcccaf82d /lib/ext2fs/fileio.c | |
parent | 8cf93332d180e6929d73cd8c855c3a83d6a6648c (diff) | |
download | android_external_e2fsprogs-4ea7bd04390935e1f8b473c8b857e518df2e226b.tar.gz android_external_e2fsprogs-4ea7bd04390935e1f8b473c8b857e518df2e226b.tar.bz2 android_external_e2fsprogs-4ea7bd04390935e1f8b473c8b857e518df2e226b.zip |
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
Diffstat (limited to 'lib/ext2fs/fileio.c')
-rw-r--r-- | lib/ext2fs/fileio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ext2fs/fileio.c b/lib/ext2fs/fileio.c index 80e50321..e2f47951 100644 --- a/lib/ext2fs/fileio.c +++ b/lib/ext2fs/fileio.c @@ -239,11 +239,9 @@ errcode_t ext2fs_file_write(ext2_file_t file, void *buf, unsigned int nbytes, unsigned int *written) { ext2_filsys fs; - blk_t pb; errcode_t retval = 0; unsigned int start, c, count = 0; char *ptr = (char *) buf; - int dontfill; EXT2_CHECK_MAGIC(file, EXT2_ET_MAGIC_EXT2_FILE); fs = file->fs; |