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

ruby-changes:7452

From: nobu <ko1@a...>
Date: Sun, 31 Aug 2008 12:37:01 +0900 (JST)
Subject: [ruby-changes:7452] Ruby:r18971 (trunk): * ext/openssl/ossl_config.c (Init_ossl_config): removed C99ism.

nobu	2008-08-31 12:36:09 +0900 (Sun, 31 Aug 2008)

  New Revision: 18971

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

  Log:
    * ext/openssl/ossl_config.c (Init_ossl_config): removed C99ism.

  Modified files:
    trunk/ext/openssl/ossl_config.c

Index: ext/openssl/ossl_config.c
===================================================================
--- ext/openssl/ossl_config.c	(revision 18970)
+++ ext/openssl/ossl_config.c	(revision 18971)
@@ -440,10 +440,11 @@
 void
 Init_ossl_config()
 {
+    char *default_config_file;
     eConfigError = rb_define_class_under(mOSSL, "ConfigError", eOSSLError);
     cConfig = rb_define_class_under(mOSSL, "Config", rb_cObject);
 
-    const char *default_config_file = CONF_get1_default_config_file();
+    default_config_file = CONF_get1_default_config_file();
     rb_define_const(cConfig, "DEFAULT_CONFIG_FILE",
 		    rb_str_new2(default_config_file));
     OPENSSL_free(default_config_file);

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

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