summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-02-23 13:05:32 +0000
committerakr <akr@ruby-lang.org>2011-02-23 13:05:32 +0000
commitda7b45da5d458d75b3658e682d827862929172d9 (patch)
treea56c562ed84e33a4d247f4be0e2301b7bfc450aa /ext
parentd16aa73d547f643c1134faa708d186e4957b5b62 (diff)
downloadruby-openssl-history-da7b45da5d458d75b3658e682d827862929172d9.tar.gz
* ext/openssl/ossl_engine.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_engine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_engine.c b/ext/openssl/ossl_engine.c
index 3b48119..111e418 100644
--- a/ext/openssl/ossl_engine.c
+++ b/ext/openssl/ossl_engine.c
@@ -13,20 +13,20 @@
#if defined(OSSL_ENGINE_ENABLED)
#define WrapEngine(klass, obj, engine) do { \
- if (!engine) { \
+ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, ENGINE_free, engine); \
+ (obj) = Data_Wrap_Struct((klass), 0, ENGINE_free, (engine)); \
} while(0)
#define GetEngine(obj, engine) do { \
- Data_Get_Struct(obj, ENGINE, engine); \
- if (!engine) { \
+ Data_Get_Struct((obj), ENGINE, (engine)); \
+ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \
} while (0)
#define SafeGetEngine(obj, engine) do { \
- OSSL_Check_Kind(obj, cEngine); \
- GetPKCS7(obj, engine); \
+ OSSL_Check_Kind((obj), cEngine); \
+ GetPKCS7((obj), (engine)); \
} while (0)
/*