From 9d764e5e859b19385173bf0f45dee9f4713aa889 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 22 May 2012 12:39:20 +0800 Subject: [PATCH] 64-bit warning fixes --- KernelLand/Modules/IPStack/adapters.c | 2 +- KernelLand/Modules/Storage/ATA/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1