Skip to content

Commit 5ee7df9

Browse files
fabio-porceddavathpela
authored andcommitted
Fix -Wstrict-prototypes warnings
Use void instead of empty parentheses. sbat.c:459:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 459 | clear_sbat_policy() | ^~~~~~~~~~~~~~~~~ MokManager.c:740:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 740 | static INTN reset_system() | ^~~~~~~~~~~~ MokManager.c:2155:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 2155 | static int draw_countdown() | ^~~~~~~~~~~~~~ Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
1 parent 8314c39 commit 5ee7df9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MokManager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ static EFI_STATUS compute_pw_hash(void *Data, UINTN DataSize, UINT8 * password,
737737
return efi_status;
738738
}
739739

740-
static INTN reset_system()
740+
static INTN reset_system(void)
741741
{
742742
RT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
743743
console_notify(L"Failed to reboot\n");
@@ -2152,7 +2152,7 @@ static BOOLEAN verify_pw(BOOLEAN * protected)
21522152
return TRUE;
21532153
}
21542154

2155-
static int draw_countdown()
2155+
static int draw_countdown(void)
21562156
{
21572157
CHAR16 *message = L"Press any key to perform MOK management";
21582158
CHAR16 *title;

sbat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ preserve_ssp_uefi_variable(UINT8 *ssp_applied, UINTN sspversize, UINT32 attribut
456456
}
457457

458458
static void
459-
clear_sbat_policy()
459+
clear_sbat_policy(void)
460460
{
461461
EFI_STATUS efi_status = EFI_SUCCESS;
462462

0 commit comments

Comments
 (0)