From 10ff09ab8f10f54aa6aaae2c96d9dcd1d7500f5b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 13 Jan 2010 14:43:14 +1300 Subject: [PATCH] Fix Kerberos build errors on FreeBSD --- helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.47.3