summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-03-18 11:45:43 +0000
committerakr <akr@ruby-lang.org>2011-03-18 11:45:43 +0000
commit9022165705175898fc3d1b85447b79e82bca5099 (patch)
tree03055ab50cb41424ff9691d64eeea2a99885e858 /ext
parent07de410661ce1ef3a56ac6ee421a687a2aa21f68 (diff)
downloadruby-openssl-history-9022165705175898fc3d1b85447b79e82bca5099.tar.gz
* ext/openssl/ossl_x509req.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_x509req.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_x509req.c b/ext/openssl/ossl_x509req.c
index 368bff2..f68d215 100644
--- a/ext/openssl/ossl_x509req.c
+++ b/ext/openssl/ossl_x509req.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Req(klass, obj, req) do { \
- if (!req) { \
+ if (!(req)) { \
ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_REQ_free, req); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_REQ_free, (req)); \
} while (0)
#define GetX509Req(obj, req) do { \
- Data_Get_Struct(obj, X509_REQ, req); \
- if (!req) { \
+ Data_Get_Struct((obj), X509_REQ, (req)); \
+ if (!(req)) { \
ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Req(obj, req) do { \
- OSSL_Check_Kind(obj, cX509Req); \
- GetX509Req(obj, req); \
+ OSSL_Check_Kind((obj), cX509Req); \
+ GetX509Req((obj), (req)); \
} while (0)
/*