diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-08-28 17:48:48 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-09-26 19:19:17 +0900 |
commit | 8e93168e55894f2d2853cb4187f1c43e58c47ba2 (patch) | |
tree | 3fee818f28807ced641723ea54cf46fcd86fa0db /ext | |
parent | a19e679b45b1a2d64272d6d9f3701c41d803fc6d (diff) | |
download | ruby-openssl-8e93168e55894f2d2853cb4187f1c43e58c47ba2.tar.gz |
drop-in type check for rb_define_module_function
[ This is a backport to the 2.1 branch. ]
We can check the function pointer passed to rb_define_module_function
like how we do so in rb_define_method. The difference is that this
changeset reveales lots of atiry mismatches.
(cherry picked from commit ruby/ruby@7b6fde4258e700c0e0292bb091aa84a5e473342e)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 69758aed..e4196f07 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -338,7 +338,7 @@ ossl_clear_error(void) * implementation. */ VALUE -ossl_get_errors(void) +ossl_get_errors(VALUE _) { VALUE ary; long e; |