From ccb8b57c83bd82124bfbad90f64398794ce1a04e Mon Sep 17 00:00:00 2001 From: serassio <> Date: Mon, 28 Aug 2006 15:06:41 +0000 Subject: [PATCH] Fix another harmless fake_auth compiler warning on gcc 4.1.1 x86 --- helpers/ntlm_auth/fakeauth/ntlm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/ntlm_auth/fakeauth/ntlm.h b/helpers/ntlm_auth/fakeauth/ntlm.h index d40fc045c9..fccc495603 100644 --- a/helpers/ntlm_auth/fakeauth/ntlm.h +++ b/helpers/ntlm_auth/fakeauth/ntlm.h @@ -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 * @@ -113,9 +113,9 @@ extern int fail_debug_enabled; #ifdef DEBUG #include #include -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 -- 2.47.3