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

ruby-changes:20835

From: kosaki <ko1@a...>
Date: Sun, 7 Aug 2011 22:53:26 +0900 (JST)
Subject: [ruby-changes:20835] kosaki:r32884 (trunk): * ext/openssl/ossl_asn1.c (decode_eoc): remove unused variables.

kosaki	2011-08-07 22:52:36 +0900 (Sun, 07 Aug 2011)

  New Revision: 32884

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

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_asn1.c
    trunk/ext/openssl/ossl_pkey.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32883)
+++ ChangeLog	(revision 32884)
@@ -1,3 +1,10 @@
+Sun Aug  7 22:51:45 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* 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.
+
 Sun Aug  7 22:37:08 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: add -Wunused-variable to default CFLAGS.
Index: ext/openssl/ossl_asn1.c
===================================================================
--- ext/openssl/ossl_asn1.c	(revision 32883)
+++ ext/openssl/ossl_asn1.c	(revision 32884)
@@ -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);
 
@@ -1036,7 +1035,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: ext/openssl/ossl_pkey.c
===================================================================
--- ext/openssl/ossl_pkey.c	(revision 32883)
+++ ext/openssl/ossl_pkey.c	(revision 32884)
@@ -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/

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