summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-03-10 13:28:58 +0000
committerakr <akr@ruby-lang.org>2011-03-10 13:28:58 +0000
commit4e39a61892e9df3312e2a221c73104b4ca56061c (patch)
tree988e91156335b5247507eb25f2dffe496ffb2884 /ext
parent2cbd11c74a34674e985f70440c595e842e6bbf32 (diff)
downloadruby-openssl-history-4e39a61892e9df3312e2a221c73104b4ca56061c.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
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ssl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl.h b/ext/openssl/ossl_ssl.h
index 92df5f5..034762f 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;