diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-10 13:28:58 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-10 13:28:58 +0000 |
commit | d49f0d9576e9f770554cfc867f99c96c5b7afc22 (patch) | |
tree | 658a0f7e00a85a585d9202243e2759041c92c29b | |
parent | f1b2fb67061ee2fa15a04e8777bcb55790a9dd5c (diff) | |
download | ruby-d49f0d9576e9f770554cfc867f99c96c5b7afc22.tar.gz |
* ext/openssl/ossl_ssl.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/openssl/ossl_ssl.h | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Thu Mar 10 22:28:15 2011 Tanaka Akira <akr@fsij.org> + + * ext/openssl/ossl_ssl.h: parenthesize macro arguments. + Thu Mar 10 21:59:37 2011 NARUSE, Yui <naruse@ruby-lang.org> * parse.y (parser_encode_length): add exception as UTF8-MAC for diff --git a/ext/openssl/ossl_ssl.h b/ext/openssl/ossl_ssl.h index 92df5f5599..034762fc46 100644 --- a/ext/openssl/ossl_ssl.h +++ b/ext/openssl/ossl_ssl.h @@ -12,15 +12,15 @@ #define _OSSL_SSL_H_ #define GetSSLSession(obj, sess) do { \ - Data_Get_Struct(obj, SSL_SESSION, sess); \ - if (!sess) { \ + Data_Get_Struct((obj), SSL_SESSION, (sess)); \ + if (!(sess)) { \ ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \ } \ } while (0) #define SafeGetSSLSession(obj, sess) do { \ - OSSL_Check_Kind(obj, cSSLSession); \ - GetSSLSession(obj, sess); \ + OSSL_Check_Kind((obj), cSSLSession); \ + GetSSLSession((obj), (sess)); \ } while (0) extern VALUE mSSL; |