aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-05-23 11:55:03 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-05-23 11:59:03 +0100
commitbb7abe6ad361fc68f18d215811b0d7470b093027 (patch)
treefc21eb96cc107219150d8c8a91e6a802a8e9ed71
parent457ef40eda86f5d8d175f63908aa34adb8e6cda5 (diff)
downloadefilinux-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/efilinux.h b/efilinux.h
index f2c0016..2f3262e 100644
--- a/efilinux.h
+++ b/efilinux.h
@@ -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);
}
/**