From: Laszlo Ersek Date: Fri, 25 Sep 2015 17:22:53 +0000 (+0000) Subject: ShellPkg: UefiShellTftpCommandLib: fix incompatible pointer assignment X-Git-Tag: edk2-stable201903~8810 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7367e66f8bf49704fc684b079e0958eb7aff7562 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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18553 6f19259b-4bc3-4df7-8a09-765794883524 --- 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,