From: John Hodge Date: Tue, 22 May 2012 04:39:20 +0000 (+0800) Subject: 64-bit warning fixes X-Git-Tag: rel0.15~611^2~78 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9d764e5e859b19385173bf0f45dee9f4713aa889;p=tpg%2Facess2.git 64-bit warning fixes --- diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 82894552..ab054ba2 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -119,7 +119,7 @@ void *IPStack_Adapter_AddVFS(const char *Path) // Get MAC Address VFS_IOCtl(fd, NET_IOCTL_GETMAC, mac); - return IPStack_Adapter_Add(NULL, (void*)fd, mac); + return IPStack_Adapter_Add(NULL, (void*)(tVAddr)fd, mac); } void IPStack_Adapter_Del(void *Handle) diff --git a/KernelLand/Modules/Storage/ATA/main.c b/KernelLand/Modules/Storage/ATA/main.c index 7c1b3a86..94ee8a5a 100644 --- a/KernelLand/Modules/Storage/ATA/main.c +++ b/KernelLand/Modules/Storage/ATA/main.c @@ -105,7 +105,7 @@ int ATA_ScanDisk(int Disk) char name[] = "ata0"; sprintf(name, "ata%i", Disk); - LVM_AddVolume(&gATA_VolType, name, (void*)(Uint*)Disk, 512, sector_count); + LVM_AddVolume(&gATA_VolType, name, (void*)(Uint)Disk, 512, sector_count); #if DEBUG >= 2 {