summaryrefslogtreecommitdiff
path: root/ext/sdbm
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-30 05:25:32 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-30 05:25:32 (GMT)
commit28b9f11d5a4b878adb50a3e5472ceea8c462ed4a (patch)
tree0089b9a1bce84d5ec72badeae44b4e08f08a9c33 /ext/sdbm
parentcf5450bb7c86c4eb83f0d468c73d987e4a3e7344 (diff)
protoize no-arguments functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm')
-rw-r--r--ext/sdbm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 9290118..eb9d3c9 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -72,7 +72,7 @@ struct dbmdata {
};
static void
-closed_sdbm()
+closed_sdbm(void)
{
rb_raise(rb_eDBMError, "closed SDBM file");
}
@@ -991,7 +991,7 @@ fsdbm_reject(VALUE obj)
}
void
-Init_sdbm()
+Init_sdbm(void)
{
rb_cDBM = rb_define_class("SDBM", rb_cObject);
rb_eDBMError = rb_define_class("SDBMError", rb_eStandardError);