summaryrefslogtreecommitdiff
path: root/lib/ext2fs/alloc.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/alloc.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/alloc.c')
-rw-r--r--lib/ext2fs/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/alloc.c b/lib/ext2fs/alloc.c
index 2dc4fc7d..3356006f 100644
--- a/lib/ext2fs/alloc.c
+++ b/lib/ext2fs/alloc.c
@@ -110,7 +110,7 @@ errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
char *buf = 0;
if (!block_buf) {
- retval = ext2fs_get_mem(fs->blocksize, (void **) &buf);
+ retval = ext2fs_get_mem(fs->blocksize, &buf);
if (retval)
return retval;
block_buf = buf;
@@ -137,7 +137,7 @@ errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
fail:
if (buf)
- ext2fs_free_mem((void **) &buf);
+ ext2fs_free_mem(&buf);
return retval;
}