summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorAlcantara, Paulo <paulo.alc.cavalcanti@hp.com>2017-06-06 08:33:36 +0800
committerFu Siyuan <siyuan.fu@intel.com>2017-08-02 16:21:45 +0800
commit354a75f9ed0d2f37ace0614135e08e6a8b83e174 (patch)
tree4d7caffe5cc3307517e08405057f82a84c12fdef /MdePkg
parent45ea8a0c4550e1bb357d9e1d7fe653cd79cacaf5 (diff)
downloadedk2-354a75f9ed0d2f37ace0614135e08e6a8b83e174.tar.gz
edk2-354a75f9ed0d2f37ace0614135e08e6a8b83e174.tar.bz2
edk2-354a75f9ed0d2f37ace0614135e08e6a8b83e174.zip
MdePkg/Ftp4: Fix wrong function pointer declaration
EFI_FTP4_DATA_CALLBACK is a function pointer and defined as follows: > typedef > EFI_STATUS > (EFIAPI *EFI_FTP4_DATA_CALLBACK)( > IN EFI_FTP4_PROTOCOL *This, > IN EFI_FTP4_COMMAND_TOKEN *Token > ); And EFI_FTP4_COMMAND_TOKEN structure declared it as: > EFI_FTP4_DATA_CALLBACK *DataCallback Which ended up being a pointer to function pointer and clearly wrong. This patch fixes it by removing the misleading '*' from declaration. It's also fixed in new UEFI 2.7 spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara <paulo.alc.cavalcanti@hp.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Protocol/Ftp4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Include/Protocol/Ftp4.h b/MdePkg/Include/Protocol/Ftp4.h
index 1c4a5db925..536b3f3635 100644
--- a/MdePkg/Include/Protocol/Ftp4.h
+++ b/MdePkg/Include/Protocol/Ftp4.h
@@ -204,7 +204,7 @@ struct _EFI_FTP4_COMMAND_TOKEN {
/// DataBufferSize, again. If there is no data remained,
/// DataBufferSize should be set to 0.
///
- EFI_FTP4_DATA_CALLBACK *DataCallback;
+ EFI_FTP4_DATA_CALLBACK DataCallback;
///
/// Pointer to the parameter for DataCallback.
///