summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-03-11 19:13:02 +0000
committerakr <akr@ruby-lang.org>2011-03-11 19:13:02 +0000
commit981bb3900c591667e36ce844eb3b73cc8e9d27b9 (patch)
tree74b507c84a126f13fd2fae8a2ebaec25aab16aa7 /ext
parent4e39a61892e9df3312e2a221c73104b4ca56061c (diff)
downloadruby-openssl-history-981bb3900c591667e36ce844eb3b73cc8e9d27b9.tar.gz
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ssl_session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl_session.c b/ext/openssl/ossl_ssl_session.c
index 48b3927..d9db9a6 100644
--- a/ext/openssl/ossl_ssl_session.c
+++ b/ext/openssl/ossl_ssl_session.c
@@ -5,15 +5,15 @@
#include "ossl.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)