aboutsummaryrefslogtreecommitdiffstats
path: root/ossl.c
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2002-12-09 11:50:27 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2002-12-09 11:50:27 +0000
commitad2da96f58be5446b920f554d2ce5c7f8529411c (patch)
tree70dcc5008cf62a0fd606dd12eff89362997448fb /ossl.c
parent1200310d36d524a7974299f177ec6251d6b02103 (diff)
downloadruby-openssl-history-ad2da96f58be5446b920f554d2ce5c7f8529411c.tar.gz
* ossl.c: use ruby_unsetenv() instead of unsetenv().
* ssl.c: the return value of SSL_read/SSL_write is int (not size_t). This fix is suggested by matz. ([ruby-list:36721])
Diffstat (limited to 'ossl.c')
-rw-r--r--ossl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ossl.c b/ossl.c
index 596183f..2c573bd 100644
--- a/ossl.c
+++ b/ossl.c
@@ -89,7 +89,7 @@ asn1time_to_time(ASN1_UTCTIME *time)
tz = getenv("TZ");
putenv("TZ=UTC0");
t = mktime(&tm);
- if(!tz) unsetenv("TZ");
+ if(!tz) ruby_unsetenv("TZ");
else {
snprintf(env, sizeof(env), "TZ=%s", tz);
putenv(env);