[前][次][番号順一覧][スレッド一覧]

ruby-changes:18971

From: akr <ko1@a...>
Date: Wed, 2 Mar 2011 22:54:52 +0900 (JST)
Subject: [ruby-changes:18971] Ruby:r31006 (trunk): * ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments.

akr	2011-03-02 21:15:50 +0900 (Wed, 02 Mar 2011)

  New Revision: 31006

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31006

  Log:
    * ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_pkey_dh.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31005)
+++ ChangeLog	(revision 31006)
@@ -1,3 +1,7 @@
+Wed Mar  2 21:15:00 2011  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments.
+
 Wed Mar  2 14:24:04 2011  Shota Fukumori  <sorah@t...>
 
 	* lib/test/unit/parallel.rb: Fix name from `inclement_io` to
Index: ext/openssl/ossl_pkey_dh.c
===================================================================
--- ext/openssl/ossl_pkey_dh.c	(revision 31005)
+++ ext/openssl/ossl_pkey_dh.c	(revision 31006)
@@ -13,8 +13,8 @@
 #include "ossl.h"
 
 #define GetPKeyDH(obj, pkey) do { \
-    GetPKey(obj, pkey); \
-    if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DH) { /* PARANOIA? */ \
+    GetPKey((obj), (pkey)); \
+    if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DH) { /* PARANOIA? */ \
 	ossl_raise(rb_eRuntimeError, "THIS IS NOT A DH!") ; \
     } \
 } while (0)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]