From: Yu Watanabe Date: Thu, 7 Dec 2017 05:23:11 +0000 (+0900) Subject: bootspec: make boot_entries_select_default() static X-Git-Tag: v236~48^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7566%2Fhead;p=thirdparty%2Fsystemd.git bootspec: make boot_entries_select_default() static The function is used only in bootspec.c. So, let's make the function static. --- 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);