]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixup squid_kerb_auth so it compiles
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 24 Jul 2009 14:09:17 +0000 (16:09 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 24 Jul 2009 14:09:17 +0000 (16:09 +0200)
  - Out-of-tree build support
  - Compiler warning about odd const address arithmetics

helpers/negotiate_auth/squid_kerb_auth/Makefile.am
helpers/negotiate_auth/squid_kerb_auth/Makefile.in
helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c

index 90a5922e5ca776b754342907aec02ca948735b86..768eeba9fec8315d3474758d95008b3e0e844f67 100644 (file)
@@ -16,7 +16,7 @@ else
 squid_kerb_auth_SOURCES = $(SOURCE) $(SPNEGO)
 endif
 
-AM_CPPFLAGS = $(KERBINCS) -I$(srcdir)/spnegohelp -I.
+INCLUDES = -I$(top_srcdir)/include $(KERBINCS) -I$(srcdir)/spnegohelp -I.
 #-I$(top_srcdir)/include -I$(top_srcdir)/src
 LDADD = $(KERBLIBS)
 #-L$(top_builddir)/lib -lmiscutil $(XTRA_LIBS)
index 0e4133d872e56cb837f9a310737c60467a30d8d5..ea889f5071af885ea65db492548ecd08a0fb50f8 100644 (file)
@@ -262,7 +262,7 @@ SOURCE = squid_kerb_auth.c base64.c base64.h
 EXTRA_DIST = readme.txt do.sh
 @HAVE_SPNEGO_FALSE@squid_kerb_auth_SOURCES = $(SOURCE) $(SPNEGO)
 @HAVE_SPNEGO_TRUE@squid_kerb_auth_SOURCES = $(SOURCE)
-AM_CPPFLAGS = $(KERBINCS) -I$(srcdir)/spnegohelp -I.
+INCLUDES = -I$(top_srcdir)/include $(KERBINCS) -I$(srcdir)/spnegohelp -I.
 #-I$(top_srcdir)/include -I$(top_srcdir)/src
 LDADD = $(KERBLIBS)
 #-L$(top_builddir)/lib -lmiscutil $(XTRA_LIBS)
index 1f92392ef7b58ffebd2e3e49fdd70523bd9d4bf6..410fab885982a369a6f55ce8d2d677b91368cf5d 100644 (file)
@@ -284,7 +284,7 @@ int main(int argc, char * const argv[])
     }
 
     if (debug)
-      fprintf(stderr, "%s| %s: Got '%s' from squid (length: %d).\n", LogTime(), PROGRAM, buf?buf:"NULL",length);
+      fprintf(stderr, "%s| %s: Got '%.*s' from squid (length: %d).\n", LogTime(), PROGRAM, length, buf, length);
 
     if (buf[0] == '\0') {
       if (debug)