diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-03 15:19:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-03 15:19:20 +0000 |
commit | 33e1c86f8b808e8d505c9a6ddbe9efb357be4d41 (patch) | |
tree | 4506fa3a8fc824574f3a066ebfa8bbbaac7cd813 /ext/openssl/ossl_asn1.c | |
parent | 98630412982590136fe7d252b5697020aa255dbd (diff) | |
download | ruby-33e1c86f8b808e8d505c9a6ddbe9efb357be4d41.tar.gz |
openssl: constify
* ext/openssl/ossl_asn1.c (ossl_asn1_info): constify.
* ext/openssl/ossl_pkcs7.c (ossl_pkcs7_sym2typeid): constify and
remove sentinel as the count is used.
* ext/openssl/ossl_ssl.c (ossl_ssl_method_tab): constify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_asn1.c')
-rw-r--r-- | ext/openssl/ossl_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c index efdfbfc8aa..65ae71e861 100644 --- a/ext/openssl/ossl_asn1.c +++ b/ext/openssl/ossl_asn1.c @@ -495,7 +495,7 @@ typedef struct { VALUE *klass; } ossl_asn1_info_t; -static ossl_asn1_info_t ossl_asn1_info[] = { +static const ossl_asn1_info_t ossl_asn1_info[] = { { "EOC", &cASN1EndOfContent, }, /* 0 */ { "BOOLEAN", &cASN1Boolean, }, /* 1 */ { "INTEGER", &cASN1Integer, }, /* 2 */ @@ -529,7 +529,7 @@ static ossl_asn1_info_t ossl_asn1_info[] = { { "BMPSTRING", &cASN1BMPString, }, /* 30 */ }; -int ossl_asn1_info_size = (sizeof(ossl_asn1_info)/sizeof(ossl_asn1_info[0])); +enum {ossl_asn1_info_size = (sizeof(ossl_asn1_info)/sizeof(ossl_asn1_info[0]))}; static VALUE class_tag_map; |