1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

boot: rename ENROLL_TIMEOUT_TYPE_MAX -> ENROLL_TIMEOUT_MAX

To make it consistent with ENROLL_TIMEOUT_MIN.

Follow-up for 64376936c7.
This commit is contained in:
Yu Watanabe
2025-09-24 18:21:33 +09:00
parent 2e3c792baf
commit 63dd548fb4
2 changed files with 5 additions and 5 deletions

View File

@@ -1104,7 +1104,7 @@ static void config_defaults_load_from_file(Config *config, char *content) {
config->secure_boot_enroll_timeout_sec = ENROLL_TIMEOUT_HIDDEN;
else {
uint64_t u;
if (!parse_number8(value, &u, NULL) || u > ENROLL_TIMEOUT_TYPE_MAX) {
if (!parse_number8(value, &u, NULL) || u > ENROLL_TIMEOUT_MAX) {
log_error("Error parsing 'secure-boot-enroll-timeout-sec' config option, ignoring: %s",
value);
continue;

View File

@@ -19,10 +19,10 @@ typedef enum {
} secure_boot_enroll_action;
enum {
ENROLL_TIMEOUT_HIDDEN = 0,
ENROLL_TIMEOUT_MIN = 1,
ENROLL_TIMEOUT_DEFAULT = 15,
ENROLL_TIMEOUT_TYPE_MAX = UINT32_MAX,
ENROLL_TIMEOUT_HIDDEN = 0,
ENROLL_TIMEOUT_MIN = 1,
ENROLL_TIMEOUT_DEFAULT = 15,
ENROLL_TIMEOUT_MAX = UINT32_MAX,
};
bool secure_boot_enabled(void);