diff --git a/src/boot/boot.c b/src/boot/boot.c index 957de5fe01a..01470b49c1c 100644 --- a/src/boot/boot.c +++ b/src/boot/boot.c @@ -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; diff --git a/src/boot/secure-boot.h b/src/boot/secure-boot.h index 02683a61dc7..cf9c925758d 100644 --- a/src/boot/secure-boot.h +++ b/src/boot/secure-boot.h @@ -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);