diff options
author | Matt Fleming <matt.fleming@linux.intel.com> | 2011-05-23 11:55:03 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@linux.intel.com> | 2011-05-23 11:59:03 +0100 |
commit | bb7abe6ad361fc68f18d215811b0d7470b093027 (patch) | |
tree | fc21eb96cc107219150d8c8a91e6a802a8e9ed71 | |
parent | 457ef40eda86f5d8d175f63908aa34adb8e6cda5 (diff) | |
download | efilinux-bb7abe6ad361fc68f18d215811b0d7470b093027.tar.gz |
efilinux.h: Fix compiler warning for CheckCrc()
Pass the correct member (->Hdr) of the system table to CheckCrc() and
fix the following warning,
efilinux.h: In function ‘register_table’:
efilinux.h:62:2: warning: passing argument 2 of ‘CheckCrc’ from incompatible pointer type
/usr/include/efi/efilib.h:155:1: note: expected ‘struct EFI_TABLE_HEADER *’ but argument is of type ‘struct EFI_SYSTEM_TABLE *’
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
-rw-r--r-- | efilinux.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ static inline BOOLEAN register_table(EFI_SYSTEM_TABLE *_table) boot = sys_table->BootServices; runtime = sys_table->RuntimeServices; - return CheckCrc(sys_table->Hdr.HeaderSize, sys_table); + return CheckCrc(sys_table->Hdr.HeaderSize, &sys_table->Hdr); } /** |