mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
bootspec: make boot_entries_select_default() static
The function is used only in bootspec.c. So, let's make the function static.
This commit is contained in:
parent
5838493a3a
commit
ad1afd60d4
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user