From e26d7b59756b8995473345713178e1b35473a7a2 Mon Sep 17 00:00:00 2001 From: jljusten Date: Fri, 17 Sep 2010 20:08:57 +0000 Subject: ShellPkg: Fix EFIAPI usage inconsistencies git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10888 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c | 12 +++++++----- ShellPkg/Library/UefiSortLib/UefiSortLib.c | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'ShellPkg/Library') diff --git a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c index 3425e9e912..64f504a258 100644 --- a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c +++ b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c @@ -43,8 +43,8 @@ typedef struct { typedef struct { UINT8 Type; UINT8 SubType; - VOID (*SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); - INTN (*CompareFun) (EFI_DEVICE_PATH_PROTOCOL *, EFI_DEVICE_PATH_PROTOCOL *); + VOID (EFIAPI *SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); + INTN (EFIAPI *CompareFun) (EFI_DEVICE_PATH_PROTOCOL *, EFI_DEVICE_PATH_PROTOCOL *); } DEV_PATH_CONSIST_MAPPING_TABLE; @@ -259,6 +259,7 @@ AppendCSDGuid ( } INTN +EFIAPI _DevPathCompareAcpi ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2 @@ -284,6 +285,7 @@ _DevPathCompareAcpi ( } INTN +EFIAPI _DevPathComparePci ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2 @@ -1063,7 +1065,7 @@ GetDeviceConsistMappingInfo ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath ) { - VOID (*SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); + VOID (EFIAPI *SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); UINTN Index; @@ -1204,10 +1206,10 @@ ShellCommandConsistMappingUnInitialize ( } /** - Create a consistent mapped name for the device specified by DevicePath + Create a consistent mapped name for the device specified by DevicePath based on the Table. - This must be called after ShellCommandConsistMappingInitialize() and + This must be called after ShellCommandConsistMappingInitialize() and before ShellCommandConsistMappingUnInitialize() is called. @param[in] DeviecPath The pointer to the dev path for the device. diff --git a/ShellPkg/Library/UefiSortLib/UefiSortLib.c b/ShellPkg/Library/UefiSortLib/UefiSortLib.c index efeaad8c76..7cbff34cca 100644 --- a/ShellPkg/Library/UefiSortLib/UefiSortLib.c +++ b/ShellPkg/Library/UefiSortLib/UefiSortLib.c @@ -191,6 +191,7 @@ PerformQuickSort ( @return > 0 Buffer1 is greater than Buffer2 **/ INTN +EFIAPI DevicePathCompare ( IN CONST VOID *Buffer1, IN CONST VOID *Buffer2 -- cgit v1.2.3