diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-18 11:45:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-18 11:45:43 +0000 |
commit | 022b3368dae3f2c9063451c7f2be67a4c4ce8040 (patch) | |
tree | bf5a2b3c9aad178c32542a576d296ec54022c7ed /ext/openssl | |
parent | c7837ed8d3ec3a74382927df7c2fae19862b78ea (diff) | |
download | ruby-022b3368dae3f2c9063451c7f2be67a4c4ce8040.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/openssl')
-rw-r--r-- | ext/openssl/ossl_x509req.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_x509req.c b/ext/openssl/ossl_x509req.c index 368bff2776..f68d215da5 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) /* |