From 77cfe4bb9b00690ab3b87a105eed5c430f97bb18 Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 15 Dec 2004 20:29:17 +0000 Subject: Make the CC_IS_OK hack work again. Change the private pointer in libfat to an intptr_t; we actually use an integer most of the time so an intptr_t is more convenient. --- mtools/syslinux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mtools') diff --git a/mtools/syslinux.c b/mtools/syslinux.c index 69d7a3dd..d29108ed 100644 --- a/mtools/syslinux.c +++ b/mtools/syslinux.c @@ -113,10 +113,10 @@ ssize_t xpwrite(int fd, void *buf, size_t count, off_t offset) /* * Version of the read function suitable for libfat */ -int libfat_xpread(void *pp, void *buf, size_t secsize, libfat_sector_t sector) +int libfat_xpread(intptr_t pp, void *buf, size_t secsize, libfat_sector_t sector) { off_t offset = (off_t)sector * secsize; - return xpread((int)pp, buf, secsize, offset); + return xpread(pp, buf, secsize, offset); } @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) /* * Now, use libfat to create a block map */ - fs = libfat_open(libfat_xpread, (void *)dev_fd); + fs = libfat_open(libfat_xpread, dev_fd); ldlinux_cluster = libfat_searchdir(fs, 0, "LDLINUX SYS", NULL); secp = sectors; nsectors = 0; -- cgit v1.2.3