From: hno <> Date: Sun, 27 Aug 2006 09:56:34 +0000 (+0000) Subject: Fix some harmless fake_auth 64-bit compiler warnings X-Git-Tag: SQUID_3_0_PRE5~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c0b40a0c8c8a4a3bb0e2f0f67ada66660f27b09;p=thirdparty%2Fsquid.git Fix some harmless fake_auth 64-bit compiler warnings --- diff --git a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c index c51535a593..0a9da329c6 100644 --- a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c +++ b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c @@ -88,7 +88,7 @@ hex_dump(void *data, int size) if (n % 16 == 1) { /* store address for this line */ snprintf(addrstr, sizeof(addrstr), "%.4x", - ((unsigned int) p - (unsigned int) data)); + (int)(p - (unsigned char *) data)); } c = *p; if (isalnum(c) == 0) { @@ -278,7 +278,7 @@ ntlmDecodeAuth(struct ntlm_authenticate *auth, char *buf, size_t size) fprintf(stderr, "ntlmDecodeAuth: header check fails\n"); return -1; } - debug("ntlmDecodeAuth: size of %d\n", size); + debug("ntlmDecodeAuth: size of %d\n", (int)size); debug("ntlmDecodeAuth: flg %08x\n", auth->flags); debug("ntlmDecodeAuth: usr o(%d) l(%d)\n", auth->user.offset, auth->user.len);