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.
diff --git a/lib/ext2fs/block.c b/lib/ext2fs/block.c
index a0bf738..338b918 100644
--- a/lib/ext2fs/block.c
+++ b/lib/ext2fs/block.c
@@ -373,8 +373,7 @@
if (block_buf) {
ctx.ind_buf = block_buf;
} else {
- retval = ext2fs_get_mem(fs->blocksize * 3,
- (void **) &ctx.ind_buf);
+ retval = ext2fs_get_mem(fs->blocksize * 3, &ctx.ind_buf);
if (retval)
return retval;
}
@@ -447,7 +446,7 @@
}
if (!block_buf)
- ext2fs_free_mem((void **) &ctx.ind_buf);
+ ext2fs_free_mem(&ctx.ind_buf);
return (ret & BLOCK_ERROR) ? ctx.errcode : 0;
}