summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-09 06:25:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-09 06:25:14 +0000
commit9cea9e50b8afabbdd0bce30422f7c7062d4dcc5e (patch)
tree0e1411b39dd8f8b988ff010057f2bb586dfcd47c /ext
parent4514a10b51cb2a7f0804eff4624ca194effeedb7 (diff)
downloadruby-9cea9e50b8afabbdd0bce30422f7c7062d4dcc5e.tar.gz
ruby-9cea9e50b8afabbdd0bce30422f7c7062d4dcc5e.tar.xz
ruby-9cea9e50b8afabbdd0bce30422f7c7062d4dcc5e.zip
* ext/dl/dl.c (Init_dl): protoized.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/cfunc.c2
-rw-r--r--ext/dl/cptr.c2
-rw-r--r--ext/dl/dl.c8
-rw-r--r--ext/dl/handle.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 0ea60b197..e4ccad50c 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -496,7 +496,7 @@ rb_dlcfunc_to_i(VALUE self)
}
void
-Init_dlcfunc()
+Init_dlcfunc(void)
{
id_last_error = rb_intern("__DL2_LAST_ERROR__");
#if defined(HAVE_WINDOWS_H)
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index 7487b0cf5..00ad39e52 100644
--- a/ext/dl/cptr.c
+++ b/ext/dl/cptr.c
@@ -446,7 +446,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
}
void
-Init_dlptr()
+Init_dlptr(void)
{
id_to_ptr = rb_intern("to_ptr");
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 984a62a7e..00762c5be 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -74,11 +74,11 @@ rb_dl_init_callbacks(VALUE dl)
}
void
-Init_dl()
+Init_dl(void)
{
- void Init_dlhandle();
- void Init_dlcfunc();
- void Init_dlptr();
+ void Init_dlhandle(void);
+ void Init_dlcfunc(void);
+ void Init_dlptr(void);
rbdl_id_cdecl = rb_intern_const("cdecl");
rbdl_id_stdcall = rb_intern_const("stdcall");
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index c4ee0b9c1..474e97da3 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -214,7 +214,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
}
void
-Init_dlhandle()
+Init_dlhandle(void)
{
rb_cDLHandle = rb_define_class_under(rb_mDL, "Handle", rb_cObject);
rb_define_alloc_func(rb_cDLHandle, rb_dlhandle_s_allocate);