]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Kerberos build errors on FreeBSD
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 13 Jan 2010 01:43:14 +0000 (14:43 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 13 Jan 2010 01:43:14 +0000 (14:43 +1300)
helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth_test.c

index 1b22907c8ef6777eddc445d56d6c3c8a3c545387..1dfc3b324076758be08669aff2524a7b31a8af2a 100644 (file)
@@ -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;
     }