]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Kerberos build errors on FreeBSD
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Nov 2009 11:47:42 +0000 (00:47 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Nov 2009 11:47:42 +0000 (00:47 +1300)
helpers/negotiate_auth/kerberos/negotiate_kerberos_auth_test.cc

index 62c3c51a3c6700d1b7384348cbb9f8b240c40a2c..228a59b3a828da51f99f1a5fdcae53cfb3294623 100644 (file)
@@ -91,7 +91,7 @@ LogTime()
 
     gettimeofday(&now, NULL);
     if (now.tv_sec != last_t) {
-        tm = localtime(&now.tv_sec);
+        tm = localtime((const struct time_t*)&now.tv_sec);
         strftime(buf, 127, "%Y/%m/%d %H:%M:%S", tm);
         last_t = now.tv_sec;
     }