[PATCH 3/4] Revert "Fix compile failures."
Jim Meyering
meyering at redhat.com
Fri Sep 25 06:53:18 UTC 2009
This reverts commit 7603e404ee60f2f892be380a23c390f4638f451f.
---
libparted/fs/fat/fat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libparted/fs/fat/fat.c b/libparted/fs/fat/fat.c
index 59c8ef6..94b3981 100644
--- a/libparted/fs/fat/fat.c
+++ b/libparted/fs/fat/fat.c
@@ -114,7 +114,7 @@ fat_set_frag_sectors (PedFileSystem* fs, PedSector frag_sectors)
storage. If the read fails, free the memory and return zero without
modifying *BUF. Otherwise, set *BUF to the new buffer and return 1. */
static int
-read_sector (const PedDevice *dev, PedSector sector_num, void **buf)
+read_sector (const PedDevice *dev, PedSector sector_num, char **buf)
{
char *b = ped_malloc (dev->sector_size);
PED_ASSERT (b != NULL, return 0);
@@ -134,7 +134,7 @@ static int
fat_boot_sector_read_2 (FatBootSector* fbs, char **sector_buf,
const PedGeometry *geom)
{
- void *buf;
+ char *buf;
*sector_buf = NULL;
if (!read_sector (geom->dev, 0, &buf))
return 0;
--
1.6.5.rc2.177.ga9dd6
More information about the parted-devel
mailing list