summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-08-26 09:17:27 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-08-28 17:08:12 +0000
commit6cf1a51bafbc11b77fe05f0addcb59ad7bfe276d (patch)
tree25b03468e553b5a22a1f7ce64a556b640ce83488
parent06b331b4fee0f4f99a95d9b17d2320671cfa2a95 (diff)
downloadcoreboot-6cf1a51bafbc11b77fe05f0addcb59ad7bfe276d.tar.gz
coreboot-6cf1a51bafbc11b77fe05f0addcb59ad7bfe276d.tar.bz2
coreboot-6cf1a51bafbc11b77fe05f0addcb59ad7bfe276d.zip
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>
-rw-r--r--util/msrtool/msrtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c
index 98e1169592af..02c641f2d74a 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");