]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix another harmless fake_auth compiler warning on gcc 4.1.1 x86
authorserassio <>
Mon, 28 Aug 2006 15:06:41 +0000 (15:06 +0000)
committerserassio <>
Mon, 28 Aug 2006 15:06:41 +0000 (15:06 +0000)
helpers/ntlm_auth/fakeauth/ntlm.h

index d40fc045c90ad1de67c8045909a0179704a9f028..fccc495603fd0fa9c8a4aeff561a71359610718f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ntlm.h,v 1.8 2006/08/20 15:27:55 serassio Exp $
+ * $Id: ntlm.h,v 1.9 2006/08/28 09:06:41 serassio Exp $
  *
  * AUTHOR: Andrew Doran <ad@interlude.eu.org>
  *
@@ -113,9 +113,9 @@ extern int fail_debug_enabled;
 #ifdef DEBUG
 #include <stdio.h>
 #include <unistd.h>
-static char *__foo;
+static const char *__foo;
 #define debug(X...) if (debug_enabled) { \
-                    fprintf(stderr,"ntlm-auth[%d](%s:%d): ", (int)getpid(), \
+                    fprintf(stderr,"ntlm-auth[%ld](%s:%d): ", (long)getpid(), \
                     ((__foo=strrchr(__FILE__,'/'))==NULL?__FILE__:__foo+1),\
                     __LINE__);\
                     fprintf(stderr,X); }
@@ -136,7 +136,7 @@ debug(char *format,...)
        va_list args;
 
        va_start(args, format);
-       fprintf(stderr, "ntlm-auth[%d]: ", getpid());
+       fprintf(stderr, "ntlm-auth[%ld]: ", (long)getpid());
        vfprintf(stderr, format, args);
        va_end(args);
 #if FAIL_DEBUG