summaryrefslogtreecommitdiff
path: root/src/shared/efivars.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-04-10 19:43:36 +0200
committerTom Gundersen <teg@jklm.no>2015-04-10 19:55:49 +0200
commit9df49b33583e8a7d0a252bc5bd532fd2448ef0c8 (patch)
tree14fe7e0ef08fc1e97f8d029400d2560b4f8b57b7 /src/shared/efivars.h
parent3dc055541c570e93c817e42f451f7d3519629cbc (diff)
shared: efivars - is_efi_*() returns bool instead of int
There was a bug where is_efi_*() could return a negative error value, which would be treated as 'true', just make this a bool in the helper library to avoid the problem.
Diffstat (limited to 'src/shared/efivars.h')
-rw-r--r--src/shared/efivars.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/efivars.h b/src/shared/efivars.h
index e796bf415d..420013a61d 100644
--- a/src/shared/efivars.h
+++ b/src/shared/efivars.h
@@ -33,8 +33,8 @@
#define EFI_VARIABLE_RUNTIME_ACCESS 0x0000000000000004
bool is_efi_boot(void);
-int is_efi_secure_boot(void);
-int is_efi_secure_boot_setup_mode(void);
+bool is_efi_secure_boot(void);
+bool is_efi_secure_boot_setup_mode(void);
int efi_reboot_to_firmware_supported(void);
int efi_get_reboot_to_firmware(void);
int efi_set_reboot_to_firmware(bool value);