From: Amos Jeffries Date: Sun, 1 Aug 2010 10:37:07 +0000 (+1200) Subject: Fix const-correctness on helper debug() X-Git-Tag: take1~427 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21737d17270aba0eea55eb893630a9fbafd23f37;p=thirdparty%2Fsquid.git Fix const-correctness on helper debug() --- diff --git a/compat/debug.cc b/compat/debug.cc index 3a510988ea..a008677e6a 100644 --- a/compat/debug.cc +++ b/compat/debug.cc @@ -7,7 +7,7 @@ int debug_enabled = 0; /* under gcc a macro define in compat/debug.h is used instead */ void -debug(char *format,...) +debug(const char *format,...) { if (!debug_enabled) return; diff --git a/compat/debug.h b/compat/debug.h index d209d7d706..8c72fe1363 100644 --- a/compat/debug.h +++ b/compat/debug.h @@ -35,7 +35,7 @@ SQUIDCEXTERN int debug_enabled; #else /* __GNUC__ */ /* non-GCC compilers can't do the above macro define yet. */ -void debug(char *format,...); +void debug(const char *format,...); #endif