From: Amos Jeffries Date: Wed, 13 Jan 2010 01:43:14 +0000 (+1300) Subject: Fix Kerberos build errors on FreeBSD X-Git-Tag: SQUID_3_1_0_16~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10ff09ab8f10f54aa6aaae2c96d9dcd1d7500f5b;p=thirdparty%2Fsquid.git Fix Kerberos build errors on FreeBSD --- diff --git a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c index 1b22907c8e..1dfc3b3240 100644 --- a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c +++ b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c @@ -80,8 +80,7 @@ static const char *LogTime() gettimeofday(&now, NULL); if (now.tv_sec != last_t) { // FreeBSD defines tv_sec as long in non-ARM systems with a TODO note - time_t tmp = now.tv_sec; - tm = localtime(&tmp); + tm = localtime((const time_t*)&now.tv_sec); strftime(buf, 127, "%Y/%m/%d %H:%M:%S", tm); last_t = now.tv_sec; }