aboutsummaryrefslogtreecommitdiffstats
path: root/e2fsck/dx_dirinfo.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 /e2fsck/dx_dirinfo.c
parent0ec1b153ba6291aac5faa00c197a71d1cb0165f5 (diff)
downloade2fsprogs-c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e.tar.gz
e2fsprogs-c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e.tar.xz
e2fsprogs-c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e.zip
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/dx_dirinfo.c')
-rw-r--r--e2fsck/dx_dirinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsck/dx_dirinfo.c b/e2fsck/dx_dirinfo.c
index ff90e99f..322f5167 100644
--- a/e2fsck/dx_dirinfo.c
+++ b/e2fsck/dx_dirinfo.c
@@ -37,7 +37,7 @@ void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks)
ctx->dx_dir_info_size += 10;
retval = ext2fs_resize_mem(old_size, ctx->dx_dir_info_size *
sizeof(struct dx_dir_info),
- (void **) &ctx->dx_dir_info);
+ &ctx->dx_dir_info);
if (retval) {
ctx->dx_dir_info_size -= 10;
return;
@@ -117,11 +117,11 @@ void e2fsck_free_dx_dir_info(e2fsck_t ctx)
dir = ctx->dx_dir_info;
for (i=0; i < ctx->dx_dir_info_count; i++) {
if (dir->dx_block) {
- ext2fs_free_mem((void **) &dir->dx_block);
+ ext2fs_free_mem(&dir->dx_block);
dir->dx_block = 0;
}
}
- ext2fs_free_mem((void **) &ctx->dx_dir_info);
+ ext2fs_free_mem(&ctx->dx_dir_info);
ctx->dx_dir_info = 0;
}
ctx->dx_dir_info_size = 0;