mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec40f71690
commit
f085a0b034
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Mar 12 04:12:41 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
|
||||||
|
|
||||||
Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
|
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
#include "ossl.h"
|
#include "ossl.h"
|
||||||
|
|
||||||
#define GetSSLSession(obj, sess) do { \
|
#define GetSSLSession(obj, sess) do { \
|
||||||
Data_Get_Struct(obj, SSL_SESSION, sess); \
|
Data_Get_Struct((obj), SSL_SESSION, (sess)); \
|
||||||
if (!sess) { \
|
if (!(sess)) { \
|
||||||
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
|
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define SafeGetSSLSession(obj, sess) do { \
|
#define SafeGetSSLSession(obj, sess) do { \
|
||||||
OSSL_Check_Kind(obj, cSSLSession); \
|
OSSL_Check_Kind((obj), cSSLSession); \
|
||||||
GetSSLSession(obj, sess); \
|
GetSSLSession((obj), (sess)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue