]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: fixed 64-bit check for time_t in mini-x509
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 3 May 2016 18:14:37 +0000 (20:14 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 3 May 2016 18:14:37 +0000 (20:14 +0200)
tests/mini-x509.c

index 389860d2f48bcbdc619e2256fee2a97e65be8d2a..13d93cb3b47e8a8e60113f9f5af002e4b83b6a45 100644 (file)
@@ -217,7 +217,7 @@ void doit(void)
                        fail("unexpected activation time: %lu\n", (long unsigned)t);
                }
 
-               if (sizeof(time_t) >= 4) {
+               if (sizeof(time_t) >= 8) {
                        t = gnutls_certificate_expiration_time_peers(client);
                        if (t != (time_t)253402300799UL) {
                                fail("unexpected expiration time: %lu\n", (long unsigned)t);