summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_x509revoked.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-19 03:30:59 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-19 03:30:59 +0000
commitb86e5f851744df466acdecd54a945dff11793715 (patch)
tree6dc0b0af170cc8331f5dc16dde2c0fe0ec6c263d /ext/openssl/ossl_x509revoked.c
parent61f411312b50c65151d9a564be41674f17d471c9 (diff)
* ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_x509revoked.c')
-rw-r--r--ext/openssl/ossl_x509revoked.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_x509revoked.c b/ext/openssl/ossl_x509revoked.c
index 6ba73b1..320abaa 100644
--- a/ext/openssl/ossl_x509revoked.c
+++ b/ext/openssl/ossl_x509revoked.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Rev(klass, obj, rev) do { \
- if (!rev) { \
+ if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_REVOKED_free, rev); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_REVOKED_free, (rev)); \
} while (0)
#define GetX509Rev(obj, rev) do { \
- Data_Get_Struct(obj, X509_REVOKED, rev); \
- if (!rev) { \
+ Data_Get_Struct((obj), X509_REVOKED, (rev)); \
+ if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Rev(obj, rev) do { \
- OSSL_Check_Kind(obj, cX509Rev); \
- GetX509Rev(obj, rev); \
+ OSSL_Check_Kind((obj), cX509Rev); \
+ GetX509Rev((obj), (rev)); \
} while (0)
/*