[systemd-devel] [PATCH v2 4/8] make file_read callable outside compilation unit

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Dec 10 01:23:16 PST 2013


Make file_read usable from other compilation units allowing reuse
of code when splitting functionality to multiple files.

Signed-off-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Reviewed-by: Darren Hart <dvhart at linux.intel.com>
Reviewed-by: Mikko Ylinen <mikko.ylinen at intel.com>
---
 src/efi/gummiboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c
index 8a83474..062865d 100644
--- a/src/efi/gummiboot.c
+++ b/src/efi/gummiboot.c
@@ -1621,7 +1621,7 @@ static VOID config_entry_add_from_file(Config *config, EFI_HANDLE *device, CHAR1
         config_add_entry(config, entry);
 }
 
-static UINTN file_read(EFI_FILE_HANDLE dir, CHAR16 *name, CHAR8 **content) {
+UINTN file_read(EFI_FILE_HANDLE dir, CHAR16 *name, CHAR8 **content) {
         EFI_FILE_HANDLE handle;
         EFI_FILE_INFO *info;
         CHAR8 *buf;
-- 
1.8.1.4



More information about the systemd-devel mailing list