summaryrefslogtreecommitdiff
path: root/lib/ext2fs/expanddir.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-08-01 09:41:07 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-08-01 09:41:07 -0400
commitc4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e (patch)
tree2d1db6d042abcaf015834480ea1ca8c26c456f5d /lib/ext2fs/expanddir.c
parent0ec1b153ba6291aac5faa00c197a71d1cb0165f5 (diff)
downloade2fsprogs-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 'lib/ext2fs/expanddir.c')
-rw-r--r--lib/ext2fs/expanddir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/expanddir.c b/lib/ext2fs/expanddir.c
index efc2b22e..3c2c8037 100644
--- a/lib/ext2fs/expanddir.c
+++ b/lib/ext2fs/expanddir.c
@@ -55,7 +55,7 @@ static int expand_dir_proc(ext2_filsys fs,
es->done = 1;
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;
@@ -67,7 +67,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_block_alloc_stats(fs, new_blk, +1);
es->newblocks++;