From b86e5f851744df466acdecd54a945dff11793715 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 19 Mar 2011 03:30:59 +0000 Subject: * 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 --- ChangeLog | 4 ++++ ext/openssl/ossl_x509revoked.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index de2aca677f..ee673a70c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 19 12:30:25 2011 Tanaka Akira + + * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments. + Fri Mar 18 20:44:36 2011 Tanaka Akira * ext/openssl/ossl_x509req.c: parenthesize macro arguments. diff --git a/ext/openssl/ossl_x509revoked.c b/ext/openssl/ossl_x509revoked.c index 6ba73b13b8..320abaa7ae 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) /* -- cgit v1.2.3