summaryrefslogtreecommitdiff
path: root/src/shared/efivars.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r--src/shared/efivars.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index b82f74a459..2a925f3970 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -87,12 +87,12 @@ static int read_flag(const char *varname) {
return r;
}
-int is_efi_secure_boot(void) {
- return read_flag("SecureBoot");
+bool is_efi_secure_boot(void) {
+ return read_flag("SecureBoot") > 0;
}
-int is_efi_secure_boot_setup_mode(void) {
- return read_flag("SetupMode");
+bool is_efi_secure_boot_setup_mode(void) {
+ return read_flag("SetupMode") > 0;
}
int efi_reboot_to_firmware_supported(void) {