OvmfPkg/XenBusDxe: fix VS2010 build failures
This patch contain only type cast. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan <scott@notabs.org> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Build-tested-by: Scott Duplichan <scott@notabs.org> Acked-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16392 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -182,7 +182,7 @@ XenBusAddDevice (
|
||||
Private->XenBusIo.Type = AsciiStrDup (Type);
|
||||
Private->XenBusIo.Node = AsciiStrDup (DevicePath);
|
||||
Private->XenBusIo.Backend = BackendPath;
|
||||
Private->XenBusIo.DeviceId = AsciiStrDecimalToUintn (Id);
|
||||
Private->XenBusIo.DeviceId = (UINT16)AsciiStrDecimalToUintn (Id);
|
||||
Private->Dev = Dev;
|
||||
|
||||
TempXenBusPath = AllocateCopyPool (sizeof (XENBUS_DEVICE_PATH),
|
||||
@@ -274,7 +274,7 @@ XenBusEnumerateDeviceType (
|
||||
XenBusAddDevice (Dev, Type, Directory[Index]);
|
||||
}
|
||||
|
||||
FreePool (Directory);
|
||||
FreePool ((VOID*)Directory);
|
||||
}
|
||||
|
||||
|
||||
@@ -310,7 +310,7 @@ XenBusEnumerateBus (
|
||||
XenBusEnumerateDeviceType (Dev, Types[Index]);
|
||||
}
|
||||
|
||||
FreePool (Types);
|
||||
FreePool ((VOID*)Types);
|
||||
|
||||
return XENSTORE_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user