diff --git a/include/efi_loader.h b/include/efi_loader.h index d2fadc5c731995ff23e5dacb18f584ce29905be6..48fbe7a214f1b8e9d4f6a6d33c40114e84b809b8 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -187,7 +187,7 @@ efi_status_t efi_gop_register(void); /* Called by bootefi to make the network interface available */ efi_status_t efi_net_register(void); /* Called by bootefi to make the watchdog available */ -int efi_watchdog_register(void); +efi_status_t efi_watchdog_register(void); /* Called by bootefi to make SMBIOS tables available */ efi_status_t efi_smbios_register(void); diff --git a/lib/efi_loader/efi_watchdog.c b/lib/efi_loader/efi_watchdog.c index 35a45dedf849ce752a0bce6cdb21c98b4d6dc3e1..b1c35a8e29dd1e78c5430baaf0aa8fd1e7c2c4a4 100644 --- a/lib/efi_loader/efi_watchdog.c +++ b/lib/efi_loader/efi_watchdog.c @@ -59,7 +59,7 @@ efi_status_t efi_set_watchdog(unsigned long timeout) * * This function is called by efi_init_obj_list() */ -int efi_watchdog_register(void) +efi_status_t efi_watchdog_register(void) { efi_status_t r; @@ -85,5 +85,5 @@ int efi_watchdog_register(void) printf("ERROR: Failed to set watchdog timer\n"); return r; } - return 0; + return EFI_SUCCESS; }