summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2015-09-25 17:22:53 +0000
committerlersek <lersek@Edk2>2015-09-25 17:22:53 +0000
commit7367e66f8bf49704fc684b079e0958eb7aff7562 (patch)
tree719d76b3937d16cd1b348424a2853db2e8175d53 /ShellPkg
parent28f27af6f007c3794fcc9d098ef91713160f4e5b (diff)
downloadedk2-platforms-7367e66f8bf49704fc684b079e0958eb7aff7562.tar.xz
ShellPkg: UefiShellTftpCommandLib: fix incompatible pointer assignment
Add the missing EFIAPI calling convention to the CheckPacket() function. Without it, the gcc build breaks due to the incompatible pointer assignment in "Mtftp4Token.CheckPacket = CheckPacket". Cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18553 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
index 2dc9287020..4bb21aae6f 100644
--- a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
+++ b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
@@ -197,6 +197,7 @@ DownloadFile (
**/
STATIC
EFI_STATUS
+EFIAPI
CheckPacket (
IN EFI_MTFTP4_PROTOCOL *This,
IN EFI_MTFTP4_TOKEN *Token,
@@ -940,6 +941,7 @@ Error :
**/
STATIC
EFI_STATUS
+EFIAPI
CheckPacket (
IN EFI_MTFTP4_PROTOCOL *This,
IN EFI_MTFTP4_TOKEN *Token,