From ad1afd60d4cf70c2f2d61c35b345f748f9073654 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 7 Dec 2017 14:23:11 +0900 Subject: [PATCH] bootspec: make boot_entries_select_default() static The function is used only in bootspec.c. So, let's make the function static. --- src/shared/bootspec.c | 2 +- src/shared/bootspec.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index f71205de5ba..dea3c5212ad 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -346,7 +346,7 @@ static int boot_entries_uniquify(BootEntry *entries, size_t n_entries) { return 0; } -int boot_entries_select_default(const BootConfig *config) { +static int boot_entries_select_default(const BootConfig *config) { int i; if (config->entry_oneshot) diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h index 391c4a49af2..fb8c10a69ae 100644 --- a/src/shared/bootspec.h +++ b/src/shared/bootspec.h @@ -52,7 +52,6 @@ typedef struct BootConfig { void boot_entry_free(BootEntry *entry); int boot_entry_load(const char *path, BootEntry *entry); int boot_entries_find(const char *dir, BootEntry **entries, size_t *n_entries); -int boot_entries_select_default(const BootConfig *config); int boot_loader_read_conf(const char *path, BootConfig *config); void boot_config_free(BootConfig *config); -- 2.47.3