aboutsummaryrefslogtreecommitdiffstats
path: root/dos/syslinux.c
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-15 19:01:38 +0000
committerhpa <hpa>2004-12-15 19:01:38 +0000
commit701f75fe81968cf2dccbffbf2f09bf2b04ea4ad6 (patch)
tree8fad99a12b46c4dd8d32fceabb8b913bd1b74664 /dos/syslinux.c
parent5ddecdda2e74520d252dbe50528c3baf1a004992 (diff)
downloadsyslinux-devel-701f75fe81968cf2dccbffbf2f09bf2b04ea4ad6.tar.gz
syslinux-devel-701f75fe81968cf2dccbffbf2f09bf2b04ea4ad6.tar.xz
syslinux-devel-701f75fe81968cf2dccbffbf2f09bf2b04ea4ad6.zip
Simple memset/memcpy implementation
Diffstat (limited to 'dos/syslinux.c')
-rw-r--r--dos/syslinux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c
index dbab7bcc..820e1cbc 100644
--- a/dos/syslinux.c
+++ b/dos/syslinux.c
@@ -131,9 +131,9 @@ void set_attributes(const char *file, int attributes)
/*
* Version of the read_device 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)
{
- read_device((int)pp, buf, 1, sector);
+ read_device(pp, buf, 1, sector);
return secsize;
}
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
* this is supposed to be a simple, privileged version
* of the installer.
*/
- 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;