From: Jelle van der Waa Date: Wed, 7 May 2025 10:14:02 +0000 (+0200) Subject: shared: bootspec: use argument comment name auto_only X-Git-Tag: v258-rc1~611^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b52f095e9a4291cade54031522a60b910059416f;p=thirdparty%2Fsystemd.git shared: bootspec: use argument comment name auto_only --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 5dd8d452ab3..8b9411a5c2f 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -1565,7 +1565,7 @@ int boot_config_load_auto( int boot_config_augment_from_loader( BootConfig *config, char **found_by_loader, - bool only_auto) { + bool auto_only) { static const BootEntryAddons no_addons = (BootEntryAddons) {}; static const char *const title_table[] = { @@ -1595,7 +1595,7 @@ int boot_config_augment_from_loader( continue; } - if (only_auto && !startswith(*i, "auto-")) + if (auto_only && !startswith(*i, "auto-")) continue; c = strdup(*i); diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h index 1d114e10d4a..a574a0be93c 100644 --- a/src/shared/bootspec.h +++ b/src/shared/bootspec.h @@ -132,7 +132,7 @@ int boot_config_load_type1( int boot_config_finalize(BootConfig *config); int boot_config_load(BootConfig *config, const char *esp_path, const char *xbootldr_path); int boot_config_load_auto(BootConfig *config, const char *override_esp_path, const char *override_xbootldr_path); -int boot_config_augment_from_loader(BootConfig *config, char **list, bool only_auto); +int boot_config_augment_from_loader(BootConfig *config, char **list, bool auto_only); int boot_config_select_special_entries(BootConfig *config, bool skip_efivars);