From 6cf1a51bafbc11b77fe05f0addcb59ad7bfe276d Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 26 Aug 2023 09:17:27 +0200 Subject: util/msrtool: Don't use old style function definition Use "int foo(void)" instead of old-style "int foo()". Change-Id: Ieb151c2db1c0ee9222dbacccae78ca725bdcde08 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/77498 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- util/msrtool/msrtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c index 98e1169592..02c641f2d7 100644 --- a/util/msrtool/msrtool.c +++ b/util/msrtool/msrtool.c @@ -87,7 +87,7 @@ static void *add_target(const struct targetdef *t) { return targets; } -static int found_system() { +static int found_system(void) { if (!sys || (sys && !sys->name)) { fprintf(stderr, "Unable to detect the current operating system!\n"); fprintf(stderr, "On Linux, please run 'modprobe msr' and try again.\n"); -- cgit v1.2.3