From: Theodore Ts'o Date: Mon, 23 Mar 2020 03:47:12 +0000 (-0400) Subject: e2fsck: fix various gcc -Wall nits X-Git-Tag: v1.45.7~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1102de4d50b195ddfa8369048589e79b4cd1bc20;p=thirdparty%2Fe2fsprogs.git e2fsck: fix various gcc -Wall nits Signed-off-by: Theodore Ts'o --- diff --git a/e2fsck/rehash.c b/e2fsck/rehash.c index 1616d07a5..30e510a6c 100644 --- a/e2fsck/rehash.c +++ b/e2fsck/rehash.c @@ -109,7 +109,7 @@ static int fill_dir_block(ext2_filsys fs, void *priv_data) { struct fill_dir_struct *fd = (struct fill_dir_struct *) priv_data; - struct hash_entry *new_array, *ent; + struct hash_entry *ent; struct ext2_dir_entry *dirent; char *dir; unsigned int offset, dir_offset, rec_len, name_len; @@ -460,7 +460,7 @@ static errcode_t copy_dir_entries(e2fsck_t ctx, struct hash_entry *ent; struct ext2_dir_entry *dirent; unsigned int rec_len, prev_rec_len, left, slack, offset; - int i; + blk_t i; ext2_dirhash_t prev_hash; int csum_size = 0; struct ext2_dir_entry_tail *t; diff --git a/e2fsck/unix.c b/e2fsck/unix.c index e71d7833a..1b7ccea95 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -1439,7 +1439,7 @@ int main (int argc, char *argv[]) fputs("\n", ctx->problem_logf); fprintf(ctx->problem_logf, "\n", - ctx->now); + (unsigned long) ctx->now); fprintf(ctx->problem_logf, "brk_start < 2ULL << 30) { + if ((char *)sbrk(0) - (char *)track->brk_start < 2LL << 30) { struct mallinfo malloc_info = mallinfo(); log_out(ctx, _("Memory used: %lluk/%lluk (%lluk/%lluk), "),