summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/e2fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/e2fsck.c')
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c
index 7e0996956..7384bc453 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.c
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c
@@ -1539,7 +1539,7 @@ static errcode_t e2fsck_get_journal(e2fsck_t ctx, journal_t **ret_journal)
1539 struct buffer_head *bh; 1539 struct buffer_head *bh;
1540 struct inode *j_inode = NULL; 1540 struct inode *j_inode = NULL;
1541 struct kdev_s *dev_fs = NULL, *dev_journal; 1541 struct kdev_s *dev_fs = NULL, *dev_journal;
1542 const char *journal_name = 0; 1542 const char *journal_name = NULL;
1543 journal_t *journal = NULL; 1543 journal_t *journal = NULL;
1544 errcode_t retval = 0; 1544 errcode_t retval = 0;
1545 io_manager io_ptr = 0; 1545 io_manager io_ptr = 0;
@@ -6009,7 +6009,7 @@ static int check_dir_block(ext2_filsys fs,
6009 struct dir_info *subdir, *dir; 6009 struct dir_info *subdir, *dir;
6010 struct dx_dir_info *dx_dir; 6010 struct dx_dir_info *dx_dir;
6011#ifdef ENABLE_HTREE 6011#ifdef ENABLE_HTREE
6012 struct dx_dirblock_info *dx_db = 0; 6012 struct dx_dirblock_info *dx_db = NULL;
6013#endif /* ENABLE_HTREE */ 6013#endif /* ENABLE_HTREE */
6014 struct ext2_dir_entry *dirent, *prev; 6014 struct ext2_dir_entry *dirent, *prev;
6015 ext2_dirhash_t hash; 6015 ext2_dirhash_t hash;
@@ -7524,7 +7524,7 @@ static void e2fsck_pass4(e2fsck_t ctx)
7524 struct ext2_inode inode; 7524 struct ext2_inode inode;
7525 struct problem_context pctx; 7525 struct problem_context pctx;
7526 __u16 link_count, link_counted; 7526 __u16 link_count, link_counted;
7527 char *buf = 0; 7527 char *buf = NULL;
7528 int group, maxgroup; 7528 int group, maxgroup;
7529 7529
7530 /* Pass 4 */ 7530 /* Pass 4 */
@@ -9670,7 +9670,7 @@ int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx)
9670{ 9670{
9671 ext2_filsys fs = ctx->fs; 9671 ext2_filsys fs = ctx->fs;
9672 const struct e2fsck_problem *ptr; 9672 const struct e2fsck_problem *ptr;
9673 struct latch_descr *ldesc = 0; 9673 struct latch_descr *ldesc = NULL;
9674 const char *message; 9674 const char *message;
9675 int def_yn, answer, ans; 9675 int def_yn, answer, ans;
9676 int print_answer = 0; 9676 int print_answer = 0;
@@ -10669,7 +10669,7 @@ static errcode_t calculate_tree(ext2_filsys fs,
10669 ext2_ino_t parent) 10669 ext2_ino_t parent)
10670{ 10670{
10671 struct ext2_dx_root_info *root_info; 10671 struct ext2_dx_root_info *root_info;
10672 struct ext2_dx_entry *root, *dx_ent = 0; 10672 struct ext2_dx_entry *root, *dx_ent = NULL;
10673 struct ext2_dx_countlimit *root_limit, *limit; 10673 struct ext2_dx_countlimit *root_limit, *limit;
10674 errcode_t retval; 10674 errcode_t retval;
10675 char * block_start; 10675 char * block_start;
@@ -10821,7 +10821,7 @@ static errcode_t e2fsck_rehash_dir(e2fsck_t ctx, ext2_ino_t ino)
10821 ext2_filsys fs = ctx->fs; 10821 ext2_filsys fs = ctx->fs;
10822 errcode_t retval; 10822 errcode_t retval;
10823 struct ext2_inode inode; 10823 struct ext2_inode inode;
10824 char *dir_buf = 0; 10824 char *dir_buf = NULL;
10825 struct fill_dir_struct fd; 10825 struct fill_dir_struct fd;
10826 struct out_dir outdir; 10826 struct out_dir outdir;
10827 10827
@@ -11559,7 +11559,7 @@ static void check_resize_inode(e2fsck_t ctx)
11559 struct problem_context pctx; 11559 struct problem_context pctx;
11560 int i, j, gdt_off, ind_off; 11560 int i, j, gdt_off, ind_off;
11561 blk_t blk, pblk, expect; 11561 blk_t blk, pblk, expect;
11562 __u32 *dind_buf = 0, *ind_buf; 11562 __u32 *dind_buf = NULL, *ind_buf;
11563 errcode_t retval; 11563 errcode_t retval;
11564 11564
11565 clear_problem_context(&pctx); 11565 clear_problem_context(&pctx);
@@ -12975,7 +12975,7 @@ static errcode_t PRS(int argc, char **argv, e2fsck_t *ret_ctx)
12975 e2fsck_t ctx; 12975 e2fsck_t ctx;
12976 errcode_t retval; 12976 errcode_t retval;
12977 struct sigaction sa; 12977 struct sigaction sa;
12978 char *extended_opts = 0; 12978 char *extended_opts = NULL;
12979 12979
12980 retval = e2fsck_allocate_context(&ctx); 12980 retval = e2fsck_allocate_context(&ctx);
12981 if (retval) 12981 if (retval)