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

ruby-changes:18984

From: akr <ko1@a...>
Date: Fri, 4 Mar 2011 07:37:28 +0900 (JST)
Subject: [ruby-changes:18984] Ruby:r31020 (trunk): * ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.

akr	2011-03-04 07:18:50 +0900 (Fri, 04 Mar 2011)

  New Revision: 31020

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

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

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31019)
+++ ChangeLog	(revision 31020)
@@ -1,3 +1,7 @@
+Wed Mar  2 21:15:00 2011  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.
+
 Thu Mar  3 22:10:26 2011  NAKAMURA Usaku  <usa@r...>
 
 	* process.c (check_exec_redirect_fd, check_exec_redirect): raise
Index: ext/openssl/ossl_pkey_dsa.c
===================================================================
--- ext/openssl/ossl_pkey_dsa.c	(revision 31019)
+++ ext/openssl/ossl_pkey_dsa.c	(revision 31020)
@@ -13,8 +13,8 @@
 #include "ossl.h"
 
 #define GetPKeyDSA(obj, pkey) do { \
-    GetPKey(obj, pkey); \
-    if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \
+    GetPKey((obj), (pkey)); \
+    if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \
 	ossl_raise(rb_eRuntimeError, "THIS IS NOT A DSA!"); \
     } \
 } while (0)

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

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