diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-07 13:52:36 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-07 13:52:36 +0000 |
commit | 9c760d0aad3fac021dcfa7d7c80609cd4178d9c9 (patch) | |
tree | f9108f6815a3cab4cc27a071a62d960cf2367d8c /ext | |
parent | b6c6ce116e9bd09e20ac8fb3991439e0a1e45940 (diff) | |
download | ruby-9c760d0aad3fac021dcfa7d7c80609cd4178d9c9.tar.gz |
* ext/openssl/ossl_asn1.c (decode_eoc): remove unused variables.
Patch by Eric Wong. [Feature #5157] [ruby-core:38798]
* ext/openssl/ossl_asn1.c (ossl_asn1_decode): ditto.
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_data): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_asn1.c | 3 | ||||
-rw-r--r-- | ext/openssl/ossl_pkey.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c index 3f50933aa4..7855b2ceb3 100644 --- a/ext/openssl/ossl_asn1.c +++ b/ext/openssl/ossl_asn1.c @@ -467,7 +467,6 @@ decode_time(unsigned char* der, int length) static VALUE decode_eoc(unsigned char *der, int length) { - VALUE ret; if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00)) ossl_raise(eASN1Error, NULL); @@ -1036,7 +1035,7 @@ ossl_asn1_traverse(VALUE self, VALUE obj) static VALUE ossl_asn1_decode(VALUE self, VALUE obj) { - VALUE ret, ary; + VALUE ret; unsigned char *p; volatile VALUE tmp; long len, read = 0, offset = 0; diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c index 43812daa9c..b8480de0eb 100644 --- a/ext/openssl/ossl_pkey.c +++ b/ext/openssl/ossl_pkey.c @@ -101,7 +101,6 @@ ossl_pkey_new_from_file(VALUE filename) static VALUE ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self) { - FILE *fp; EVP_PKEY *pkey; BIO *bio; VALUE data, pass; |