[前][次][番号順一覧][スレッド一覧]

ruby-changes:21268

From: emboss <ko1@a...>
Date: Fri, 23 Sep 2011 14:18:07 +0900 (JST)
Subject: [ruby-changes:21268] emboss:r33317 (ruby_1_9_3): * ext/openssl/ossl_asn1.c

emboss	2011-09-23 14:17:47 +0900 (Fri, 23 Sep 2011)

  New Revision: 33317

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33317

  Log:
    * ext/openssl/ossl_asn1.c
      ext/openssl/ossl_pkey.c: Remove unused variables.

  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/ext/openssl/ossl_asn1.c
    branches/ruby_1_9_3/ext/openssl/ossl_pkey.c

Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 33316)
+++ ruby_1_9_3/ChangeLog	(revision 33317)
@@ -1,3 +1,8 @@
+Fri Sep 23 14:15:01 2011  Martin Bosslet  <Martin.Bosslet@g...>
+
+	* ext/openssl/ossl_asn1.c
+	  ext/openssl/ossl_pkey.c: Remove unused variables.
+
 Fri Sep 23 06:54:44 2011  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* backport r33315 from trunk.
Index: ruby_1_9_3/ext/openssl/ossl_asn1.c
===================================================================
--- ruby_1_9_3/ext/openssl/ossl_asn1.c	(revision 33316)
+++ ruby_1_9_3/ext/openssl/ossl_asn1.c	(revision 33317)
@@ -467,7 +467,6 @@
 static VALUE
 decode_eoc(unsigned char *der, int length)
 {
-    VALUE ret;
     if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00))
 	ossl_raise(eASN1Error, NULL);
 
@@ -894,10 +893,6 @@
 	ossl_asn1_initialize(4, args, asn1data);
     }
     else {
-	VALUE args[3];
-	args[0] = ary;
-	args[1] = INT2NUM(tag);
-	args[2] = ID2SYM(tc);
 	asn1data = rb_obj_alloc(cASN1Data);
 	ossl_asn1data_initialize(asn1data, ary, INT2NUM(tag), ID2SYM(tc));
     }
@@ -1036,7 +1031,7 @@
 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;
Index: ruby_1_9_3/ext/openssl/ossl_pkey.c
===================================================================
--- ruby_1_9_3/ext/openssl/ossl_pkey.c	(revision 33316)
+++ ruby_1_9_3/ext/openssl/ossl_pkey.c	(revision 33317)
@@ -101,7 +101,6 @@
 static VALUE
 ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self)
 {
-     FILE *fp;
      EVP_PKEY *pkey;
      BIO *bio;
      VALUE data, pass;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]