64-bit warning fixes
authorJohn Hodge <[email protected]>
Tue, 22 May 2012 04:39:20 +0000 (12:39 +0800)
committerJohn Hodge <[email protected]>
Tue, 22 May 2012 04:39:20 +0000 (12:39 +0800)
KernelLand/Modules/IPStack/adapters.c
KernelLand/Modules/Storage/ATA/main.c

index 8289455..ab054ba 100644 (file)
@@ -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)
index 7c1b3a8..94ee8a5 100644 (file)
@@ -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
        {

UCC git Repository :: git.ucc.asn.au