]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot/efi: Explicitly specify void in parameter list
authorMarco Wang <m.aesophor@gmail.com>
Tue, 6 Oct 2020 17:07:55 +0000 (01:07 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Oct 2020 20:29:57 +0000 (22:29 +0200)
Functions that accept no arguments should be
explicitly declared a void parameter in their parameter list.

Signed-off-by: Marco Wang <m.aesophor@gmail.com>
src/boot/efi/measure.c

index 0b712d856f00fa83cd3c848be44597df775ec360..4d87117b00cce9f666474e7278d9792456089a80 100644 (file)
@@ -266,7 +266,7 @@ static EFI_TCG * tcg1_interface_check(void) {
         return tcg;
 }
 
-static EFI_TCG2 * tcg2_interface_check() {
+static EFI_TCG2 * tcg2_interface_check(void) {
         EFI_GUID tpm2_guid = EFI_TCG2_PROTOCOL_GUID;
         EFI_STATUS status;
         EFI_TCG2 *tcg;