From d49f0d9576e9f770554cfc867f99c96c5b7afc22 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 10 Mar 2011 13:28:58 +0000 Subject: * 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 --- ext/openssl/ossl_ssl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/openssl/ossl_ssl.h') 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; -- cgit v1.2.3