Update HPUX config, work around HPUX library incompatibility.
[openssl.git] / crypto / asn1 / a_utctm.c
index 0fa8ae2ba7a844349833716d76aa8f36860ea6c0..ebc6e384c1c3eeb7849c9e34fcd55692e476351f 100644 (file)
@@ -177,9 +177,10 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
                return(NULL);
 
 #if defined(THREADS) && !defined(WIN32)
-       ts=(struct tm *)gmtime_r(&t,&data);
+       gmtime_r(&t,&data);
+       ts=&data;
 #else
-       ts=(struct tm *)gmtime(&t);
+       ts=gmtime(&t);
 #endif
        p=(char *)s->data;
        if ((p == NULL) || (s->length < 14))