diff options
author | Ulf Möller <ulf@openssl.org> | 1999-05-04 11:52:26 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-05-04 11:52:26 +0000 |
commit | afd1f9e80bb848bf1fa36ae3b9bfc51d63750525 (patch) | |
tree | 463dc0ff33045e7bbf52ac91e47c30c4cec60d6d /crypto/asn1/a_time.c | |
parent | 9de649ff052c04163ee0c00fdbf7116066124562 (diff) |
Update HPUX config, work around HPUX library incompatibility.
Submitted by: Anonymous
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r-- | crypto/asn1/a_time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c index 19bfdda7c4..848688b7db 100644 --- a/crypto/asn1/a_time.c +++ b/crypto/asn1/a_time.c @@ -97,9 +97,10 @@ ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) #endif #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 if((ts->tm_year >= 1950) && (ts->tm_year < 2050)) return ASN1_UTCTIME_set(s, t); |