From dc62a3c4dc3dd590fbba32c46b717088a132eb5e Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 19 Oct 2017 15:44:12 -0400 Subject: Move includes around to clean the source tree up a bit. Signed-off-by: Peter Jones --- lib/configtable.c | 3 +-- lib/console.c | 9 +-------- lib/execute.c | 3 +-- lib/security_policy.c | 2 +- lib/shell.c | 2 +- lib/simple_file.c | 7 +------ lib/variables.c | 7 +------ 7 files changed, 7 insertions(+), 26 deletions(-) (limited to 'lib') diff --git a/lib/configtable.c b/lib/configtable.c index edf2ed74..194637ee 100644 --- a/lib/configtable.c +++ b/lib/configtable.c @@ -8,8 +8,7 @@ #include #include -#include -#include +#include "shim.h" void * configtable_get_table(EFI_GUID *guid) diff --git a/lib/console.c b/lib/console.c index 0f50851b..b647dd1f 100644 --- a/lib/console.c +++ b/lib/console.c @@ -15,14 +15,7 @@ #include #include -static EFI_GUID SHIM_LOCK_GUID = { 0x605dab50, 0xe046, 0x4300, {0xab, 0xb6, 0x3d, 0xd8, 0x10, 0xdd, 0x8b, 0x23} }; - -static int min(int a, int b) -{ - if (a < b) - return a; - return b; -} +#include "shim.h" static int count_lines(CHAR16 *str_arr[]) diff --git a/lib/execute.c b/lib/execute.c index 89328c68..4abccc73 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -41,8 +41,7 @@ #include #include -#include -#include +#include "shim.h" EFI_STATUS generate_path(CHAR16* name, EFI_LOADED_IMAGE *li, EFI_DEVICE_PATH **path, CHAR16 **PathName) diff --git a/lib/security_policy.c b/lib/security_policy.c index 53a2580a..889653d1 100644 --- a/lib/security_policy.c +++ b/lib/security_policy.c @@ -9,7 +9,7 @@ #include #include -#include +#include "shim.h" #include #include #include diff --git a/lib/shell.c b/lib/shell.c index afd3952c..849f2660 100644 --- a/lib/shell.c +++ b/lib/shell.c @@ -8,7 +8,7 @@ #include #include -#include +#include "shim.h" EFI_STATUS argsplit(EFI_HANDLE image, int *argc, CHAR16*** ARGV) diff --git a/lib/simple_file.c b/lib/simple_file.c index d345d870..f7762cc2 100644 --- a/lib/simple_file.c +++ b/lib/simple_file.c @@ -7,13 +7,8 @@ #include #include -#include -#include -#include -#include /* for generate_path() */ +#include "shim.h" -static EFI_GUID IMAGE_PROTOCOL = LOADED_IMAGE_PROTOCOL; -static EFI_GUID SIMPLE_FS_PROTOCOL = SIMPLE_FILE_SYSTEM_PROTOCOL; static EFI_GUID FILE_INFO = EFI_FILE_INFO_ID; static EFI_GUID FS_INFO = EFI_FILE_SYSTEM_INFO_ID; diff --git a/lib/variables.c b/lib/variables.c index 59d7d054..8a993277 100644 --- a/lib/variables.c +++ b/lib/variables.c @@ -22,12 +22,7 @@ #include #include -#include - -#include -#include -#include -#include +#include "shim.h" EFI_STATUS variable_create_esl(void *cert, int cert_len, EFI_GUID *type, EFI_GUID *owner, -- cgit v1.2.3