From 827c01fadb98e77f692d39d0fb34a1944e43c99b Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:15 +0100 Subject: kern: qualify pointers whose dereferenced values are constant with const --- kern/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/debug.c') diff --git a/kern/debug.c b/kern/debug.c index add2acc..fd392d2 100644 --- a/kern/debug.c +++ b/kern/debug.c @@ -51,7 +51,7 @@ do_cnputc(char c, vm_offset_t offset) } void -Assert(char *exp, char *file, int line) +Assert(const char *exp, const char *file, int line) { #if NCPUS > 1 simple_lock(&Assert_print_lock); @@ -67,7 +67,7 @@ Assert(char *exp, char *file, int line) } void SoftDebugger(message) - char * message; + const char *message; { printf("Debugger invoked: %s\n", message); @@ -99,7 +99,7 @@ void SoftDebugger(message) } void Debugger(message) - char * message; + const char *message; { #if !MACH_KDB panic("Debugger invoked, but there isn't one!"); -- cgit v1.2.3