diff options
author | Theodore Ts'o <tytso@mit.edu> | 2003-08-01 09:41:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2003-08-01 09:41:07 -0400 |
commit | c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e (patch) | |
tree | 2d1db6d042abcaf015834480ea1ca8c26c456f5d /e2fsck/pass3.c | |
parent | 0ec1b153ba6291aac5faa00c197a71d1cb0165f5 (diff) | |
download | e2fsprogs-c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e.tar.gz |
ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem()
all now take a 'void *' instead of a 'void **' in order to
avoid pointer aliasing problems with GCC 3.x.
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r-- | e2fsck/pass3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c index 86f2e621..bafcb4cc 100644 --- a/e2fsck/pass3.c +++ b/e2fsck/pass3.c @@ -214,7 +214,7 @@ static void check_root(e2fsck_t ctx) ctx->flags |= E2F_FLAG_ABORT; return; } - ext2fs_free_mem((void **) &block); + ext2fs_free_mem(&block); /* * Set up the inode structure @@ -456,7 +456,7 @@ ext2_ino_t e2fsck_get_lost_and_found(e2fsck_t ctx, int fix) } retval = ext2fs_write_dir_block(fs, blk, block); - ext2fs_free_mem((void **) &block); + ext2fs_free_mem(&block); if (retval) { pctx.errcode = retval; fix_problem(ctx, PR_3_ERR_LPF_WRITE_BLOCK, &pctx); @@ -728,7 +728,7 @@ static int expand_dir_proc(ext2_filsys fs, es->num--; retval = ext2fs_write_dir_block(fs, new_blk, block); } else { - retval = ext2fs_get_mem(fs->blocksize, (void **) &block); + retval = ext2fs_get_mem(fs->blocksize, &block); if (retval) { es->err = retval; return BLOCK_ABORT; @@ -740,7 +740,7 @@ static int expand_dir_proc(ext2_filsys fs, es->err = retval; return BLOCK_ABORT; } - ext2fs_free_mem((void **) &block); + ext2fs_free_mem(&block); *blocknr = new_blk; ext2fs_mark_block_bitmap(ctx->block_found_map, new_blk); ext2fs_block_alloc_stats(fs, new_blk, +1); |