aboutsummaryrefslogtreecommitdiffstats
path: root/e2fsck/pass1b.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-12-02 21:37:10 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-12-02 21:37:10 -0500
commit974d57d3b1f896d2064ba854d7c037ab6478ecf8 (patch)
treecf7addcf685ca19153c536f7772a562b0f03acbc /e2fsck/pass1b.c
parent3c7c6d73f1a0bd45835966f1179fc3e8236a7d9c (diff)
downloadandroid_external_e2fsprogs-974d57d3b1f896d2064ba854d7c037ab6478ecf8.tar.gz
android_external_e2fsprogs-974d57d3b1f896d2064ba854d7c037ab6478ecf8.tar.bz2
android_external_e2fsprogs-974d57d3b1f896d2064ba854d7c037ab6478ecf8.zip
e2fsck: use errcode_t to suppress some -Wconversion warnings
We need to store some error codes using an int to keep recovery.c as close as possible to the recovery.c source file in the kernel. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/pass1b.c')
-rw-r--r--e2fsck/pass1b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c
index cd6c8835..a3b880cf 100644
--- a/e2fsck/pass1b.c
+++ b/e2fsck/pass1b.c
@@ -88,8 +88,8 @@ static int process_pass1b_block(ext2_filsys fs, blk64_t *blocknr,
int ref_offset, void *priv_data);
static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
struct dup_inode *dp, char *block_buf);
-static int clone_file(e2fsck_t ctx, ext2_ino_t ino,
- struct dup_inode *dp, char* block_buf);
+static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
+ struct dup_inode *dp, char* block_buf);
static int check_if_fs_block(e2fsck_t ctx, blk64_t test_block);
static int check_if_fs_cluster(e2fsck_t ctx, blk64_t cluster);
@@ -779,8 +779,8 @@ static int clone_file_block(ext2_filsys fs,
return 0;
}
-static int clone_file(e2fsck_t ctx, ext2_ino_t ino,
- struct dup_inode *dp, char* block_buf)
+static errcode_t clone_file(e2fsck_t ctx, ext2_ino_t ino,
+ struct dup_inode *dp, char* block_buf)
{
ext2_filsys fs = ctx->fs;
errcode_t retval;