]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix invalid conversion 'long int' to 'time_t'
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Dec 2010 06:14:11 +0000 (23:14 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Dec 2010 06:14:11 +0000 (23:14 -0700)
helpers/external_acl/kerberos_ldap_group/support_log.cc

index 3d43d985f8c6383987ec2d654e37d9f58a7d051b..d2421f8c7d5f62c701703028700a15f5eb7685b2 100644 (file)
@@ -41,7 +41,8 @@ LogTime()
 
     gettimeofday(&now, NULL);
     if (now.tv_sec != last_t) {
-        tm = localtime(&now.tv_sec);
+        time_t tmp = now.tv_sec;
+        tm = localtime(&tmp);
         strftime(buf, 127, "%Y/%m/%d %H:%M:%S", tm);
         last_t = now.tv_sec;
     }