From 84c08bc3b8ed00251d72d468c46a914426ccc358 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 Jul 2013 02:19:54 +0000 Subject: ossl.c: fix argument type * ext/openssl/ossl.c (ossl_lock_callback): fix argument type, and remove redundant casts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 502907791b..f213f3c4cd 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -463,7 +463,7 @@ ossl_fips_mode_set(VALUE self, VALUE enabled) */ static VALUE* ossl_locks; -static void ossl_lock_callback(int mode, int type, char *file, int line) +static void ossl_lock_callback(int mode, int type, const char *file, int line) { if (mode & CRYPTO_LOCK) { rb_mutex_lock(ossl_locks[type]); @@ -494,8 +494,8 @@ static void Init_ossl_locks(void) rb_gc_register_mark_object(ossl_locks[i]); } - CRYPTO_set_id_callback((unsigned long (*)())ossl_thread_id); - CRYPTO_set_locking_callback((void (*)())ossl_lock_callback); + CRYPTO_set_id_callback(ossl_thread_id); + CRYPTO_set_locking_callback(ossl_lock_callback); } /* -- cgit v1.2.3