]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/debug.h
SourceFormat Enforcement
[thirdparty/squid.git] / compat / debug.h
index d209d7d706c708f1f992bd68218288161df78a47..312eae1fa827a2a95a89191b25f1622e3ebabdef 100644 (file)
@@ -1,7 +1,3 @@
-#ifndef SQUID_CONFIG_H
-#include "config.h"
-#endif
-
 #ifndef COMPAT_DEBUG_H
 #define COMPAT_DEBUG_H
 
@@ -10,10 +6,6 @@
  * It shunts the debug messages down stderr for logging by Squid
  * or display to the user instead of corrupting the stdout data stream.
  */
-
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -25,7 +17,6 @@ SQUIDCEXTERN int debug_enabled;
 /* the macro overload style is really a gcc-ism */
 #ifdef __GNUC__
 
-
 #define debug(X...) \
                      if (debug_enabled) { \
                          fprintf(stderr, "%s(%d): pid=%ld :", __FILE__, __LINE__, (long)getpid() ); \
@@ -35,8 +26,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
 
-
 #endif /* COMPAT_DEBUG_H */