]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: UefiShellTftpCommandLib: fix incompatible pointer assignment
authorLaszlo Ersek <lersek@redhat.com>
Fri, 25 Sep 2015 17:22:53 +0000 (17:22 +0000)
committerlersek <lersek@Edk2>
Fri, 25 Sep 2015 17:22:53 +0000 (17:22 +0000)
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

ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c

index 2dc9287020d7d7d9b43496d25b57188c70b57e78..4bb21aae6fb67ba333a9b5e28a5adf5c8612eee6 100644 (file)
@@ -197,6 +197,7 @@ DownloadFile (
 **/\r
 STATIC \r
 EFI_STATUS \r
+EFIAPI\r
 CheckPacket (\r
   IN EFI_MTFTP4_PROTOCOL  *This,\r
   IN EFI_MTFTP4_TOKEN     *Token,\r
@@ -940,6 +941,7 @@ Error :
 **/\r
 STATIC\r
 EFI_STATUS\r
+EFIAPI\r
 CheckPacket (\r
   IN EFI_MTFTP4_PROTOCOL  *This,\r
   IN EFI_MTFTP4_TOKEN     *Token,\r