diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-12-18 07:25:22 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-18 07:25:22 +0000 |
commit | b73e1f6915b2cc49e9a8bc5c379e63cefc5013be (patch) | |
tree | 5a8f41ecc71c093ed4208ba28150b7a8e8771669 /ShellPkg | |
parent | 0d2f9e91bf2bb40a09840fe4c80eadb001d696dc (diff) | |
download | edk2-platforms-b73e1f6915b2cc49e9a8bc5c379e63cefc5013be.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".
(Sync patch r18553 from main trunk.)
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/branches/UDK2015@19389 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c | 2 |
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,
|