summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-28 17:48:48 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-29 18:34:09 +0900
commit7b6fde4258e700c0e0292bb091aa84a5e473342e (patch)
treea9ac636ca63307dd4507e99814ae511daa96e34a /ext
parent9ef51b0b89a10c8c401cb9f2337e47a25be72cbe (diff)
drop-in type check for rb_define_module_function
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/etc/etc.c2
-rw-r--r--ext/openssl/ossl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index a3a9bbc233..28761df8c1 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -647,7 +647,7 @@ etc_sysconfdir(VALUE obj)
* Returns system temporary directory; typically "/tmp".
*/
static VALUE
-etc_systmpdir(void)
+etc_systmpdir(VALUE _)
{
VALUE tmpdir;
#ifdef _WIN32
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index 69758aed7a..e4196f0754 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;