Fix warnings.
diff --git a/e2fsprogs/ext2fs/res_gdt.c b/e2fsprogs/ext2fs/res_gdt.c
index 8b4ddca..6a416b6 100644
--- a/e2fsprogs/ext2fs/res_gdt.c
+++ b/e2fsprogs/ext2fs/res_gdt.c
@@ -73,7 +73,7 @@
 
 	sb = fs->super;
 
-	retval = ext2fs_get_mem(2 * fs->blocksize, (void **)&dindir_buf);
+	retval = ext2fs_get_mem(2 * fs->blocksize, (void *)&dindir_buf);
 	if (retval)
 		goto out_free;
 	gdt_buf = (__u32 *)((char *)dindir_buf + fs->blocksize);
@@ -214,7 +214,7 @@
 			retval = retval2;
 	}
 out_free:
-	ext2fs_free_mem((void **)&dindir_buf);
+	ext2fs_free_mem((void *)&dindir_buf);
 	return retval;
 }