diff options
author | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-12-09 11:50:27 +0000 |
---|---|---|
committer | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-12-09 11:50:27 +0000 |
commit | ad2da96f58be5446b920f554d2ce5c7f8529411c (patch) | |
tree | 70dcc5008cf62a0fd606dd12eff89362997448fb | |
parent | 1200310d36d524a7974299f177ec6251d6b02103 (diff) | |
download | ruby-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])
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ossl.c | 2 | ||||
-rw-r--r-- | ossl_ssl.c | 6 |
3 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Mon, 9 Dec 2202 20:21:32 -0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org> + * 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]) + Mon, 28 Oct 2002 10:39:43 +0100 -- Michal Rokos <m.rokos@sh.cvut.cz> * LICENCE: update to latest Ruby's * extconf.rb: fix to make it work under Ruby 1.7.3 @@ -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); @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2000-2002 GOTOU YUUZOU <gotoyuzo@notwork.org> + * Copyright (c) 2000-2002 GOTOU Yuuzou <gotoyuzo@notwork.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -343,7 +343,7 @@ static VALUE ssl_read(VALUE self, VALUE len) { ssl_st *p; - size_t ilen, nread = 0; + int ilen, nread = 0; VALUE str; OpenFile *fptr; @@ -383,7 +383,7 @@ static VALUE ssl_write(VALUE self, VALUE str) { ssl_st *p; - size_t nwrite = 0; + int nwrite = 0; OpenFile *fptr; FILE *fp; |