From: Amos Jeffries Date: Tue, 30 Dec 2014 14:07:54 +0000 (-0800) Subject: ntlm_fake_auth: fix compile errors after rev.13785 X-Git-Tag: merge-candidate-3-v1~404 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=af31a408c4a907380323bc81b31790fbdebb4f6b;p=thirdparty%2Fsquid.git ntlm_fake_auth: fix compile errors after rev.13785 --- diff --git a/helpers/ntlm_auth/fake/ntlm_fake_auth.cc b/helpers/ntlm_auth/fake/ntlm_fake_auth.cc index 1e74f2898e..06375d59b9 100644 --- a/helpers/ntlm_auth/fake/ntlm_fake_auth.cc +++ b/helpers/ntlm_auth/fake/ntlm_fake_auth.cc @@ -61,10 +61,12 @@ #define SEND(X) {debug("sending '%s' to squid\n",X); printf(X "\n");} #ifdef __GNUC__ #define SEND2(X,Y...) {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);} +#define SEND3(X,Y...) {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);} #define SEND4(X,Y...) {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);} #else /* no gcc, no debugging. varargs macros are a gcc extension */ #define SEND2(X,Y) {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);} +#define SEND3(X,Y,Z) {debug("sending '" X "' to squid\n",Y,Z); printf(X "\n",Y,Z);} #define SEND4(X,Y,Z,W) {debug("sending '" X "' to squid\n",Y,Z,W); printf(X "\n",Y,Z,W);} #endif @@ -197,11 +199,11 @@ main(int argc, char *argv[]) size_t blen = base64_encode_update(&eCtx, data, len, reinterpret_cast(&chal)); blen += base64_encode_final(&eCtx, data+blen); if (NTLM_packet_debug_enabled) { - printf("TT %.*s\n", blen, data); + printf("TT %.*s\n", (int)blen, data); debug("sending 'TT' to squid with data:\n"); hex_dump((unsigned char *)&chal, len); } else - SEND2("TT %.*s", blen, data); + SEND3("TT %.*s", (int)blen, data); safe_free(data); } else if (strncmp(buf, "KK ", 3) == 0) {