bootspec: make boot_entries_select_default() static
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 05:23:11 +0000 (14:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 05:52:39 +0000 (14:52 +0900)
The function is used only in bootspec.c.
So, let's make the function static.

src/shared/bootspec.c
src/shared/bootspec.h

index f71205d..dea3c52 100644 (file)
@@ -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)
index 391c4a4..fb8c10a 100644 (file)
@@ -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);