From c5134c7759b7a3f0c4ed0b57a1ab8e49666ee4b6 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Thu, 19 Jan 2023 14:22:31 -0500 Subject: Remove existing old style definitions and use -Wold-style-definition. Message-Id: --- kern/debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kern/debug.c') diff --git a/kern/debug.c b/kern/debug.c index 3b472ff2..44814925 100644 --- a/kern/debug.c +++ b/kern/debug.c @@ -66,8 +66,7 @@ Assert(const char *exp, const char *file, int line, const char *fun) Debugger("assertion failure"); } -void SoftDebugger(message) - const char *message; +void SoftDebugger(const char *message) { printf("Debugger invoked: %s\n", message); @@ -98,8 +97,7 @@ void SoftDebugger(message) #endif } -void Debugger(message) - const char *message; +void Debugger(const char *message) { #if !MACH_KDB panic("Debugger invoked, but there isn't one!"); -- cgit v1.2.3