diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-03 22:18:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-03 22:18:50 +0000 |
commit | 27bb573c06e3427357f390db653a3ce0328d30fb (patch) | |
tree | b4658c60dcae2f2aeeabd5dfa7a6b31aa66d0fb6 | |
parent | d0403176fbbecf42e2de8d778c5a256537f25d99 (diff) | |
download | ruby-27bb573c06e3427357f390db653a3ce0328d30fb.tar.gz |
* ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/openssl/ossl_pkey_dsa.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Mar 2 21:15:00 2011 Tanaka Akira <akr@fsij.org> + + * ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments. + Thu Mar 3 22:10:26 2011 NAKAMURA Usaku <usa@ruby-lang.org> * process.c (check_exec_redirect_fd, check_exec_redirect): raise diff --git a/ext/openssl/ossl_pkey_dsa.c b/ext/openssl/ossl_pkey_dsa.c index e66f4ed009..65550ca351 100644 --- a/ext/openssl/ossl_pkey_dsa.c +++ b/ext/openssl/ossl_pkey_dsa.c @@ -13,8 +13,8 @@ #include "ossl.h" #define GetPKeyDSA(obj, pkey) do { \ - GetPKey(obj, pkey); \ - if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \ + GetPKey((obj), (pkey)); \ + if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \ ossl_raise(rb_eRuntimeError, "THIS IS NOT A DSA!"); \ } \ } while (0) |