fixed a 64bit time_t issue
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 21 Apr 2013 14:07:13 +0000 (16:07 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 21 Apr 2013 14:07:13 +0000 (16:07 +0200)
src/libpts/plugins/imv_attestation/attest_db.c

index 9d49a27..b2116c0 100644 (file)
@@ -975,8 +975,8 @@ METHOD(attest_db_t, list_packages, void,
        enumerator_t *e;
        char *package, *version;
        os_package_state_t security;
-       int gid, gid_old = 0, spaces, count = 0;
-       time_t t;
+       int gid, gid_old = 0, spaces, count = 0, t;
+       time_t timestamp;
 
        if (this->pid)
        {
@@ -1002,7 +1002,8 @@ METHOD(attest_db_t, list_packages, void,
                                                printf(" ");
                                        }
                                }
-                               printf(" %T (%s)%N\n", &t, this->utc, version,
+                               timestamp = t;
+                               printf(" %T (%s)%N\n", &timestamp, this->utc, version,
                                         os_package_state_names, security);
                                count++;
                        }