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 <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77498
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes Haouas 2023-08-26 09:17:27 +02:00
parent 06b331b4fe
commit 6cf1a51baf
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ static void *add_target(const struct targetdef *t) {
return targets; return targets;
} }
static int found_system() { static int found_system(void) {
if (!sys || (sys && !sys->name)) { if (!sys || (sys && !sys->name)) {
fprintf(stderr, "Unable to detect the current operating system!\n"); fprintf(stderr, "Unable to detect the current operating system!\n");
fprintf(stderr, "On Linux, please run 'modprobe msr' and try again.\n"); fprintf(stderr, "On Linux, please run 'modprobe msr' and try again.\n");