]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: make boot_entries_select_default() static 7566/head
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 f71205de5ba16bfc8eaa26a1267a3ffb2a5dd397..dea3c5212ad93a0d28656fc960534fd973a5e9c5 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 391c4a49af215d92867d03d6eba9605123c879c3..fb8c10a69aed736644bac4a3b73d303fde3858e4 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);