diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 03:36:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 03:36:09 +0000 |
commit | e1284dc1e041a809052faff63e83770ad3bbc8ad (patch) | |
tree | aed217249674c92de46b1e003d55b5a33287ed6d /ext/openssl | |
parent | 88faf60703620d6b4afca59b3ec589a92319f566 (diff) | |
download | ruby-e1284dc1e041a809052faff63e83770ad3bbc8ad.tar.gz ruby-e1284dc1e041a809052faff63e83770ad3bbc8ad.tar.xz ruby-e1284dc1e041a809052faff63e83770ad3bbc8ad.zip |
* ext/openssl/ossl_config.c (Init_ossl_config): removed C99ism.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/ossl_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index f305af47b..cfc650d69 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -440,10 +440,11 @@ ossl_config_inspect(VALUE self) 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); |