summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c6
-rw-r--r--ext/etc/etc.c8
-rw-r--r--ext/socket/socket.c2
-rw-r--r--ext/syck/node.c6
-rw-r--r--ext/syck/rubyext.c8
-rw-r--r--ext/syck/syck.c2
-rw-r--r--ext/syck/syck.h8
7 files changed, 20 insertions, 20 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 9e448bf..615bd65 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -72,9 +72,9 @@ struct windata {
#define CHECK(c) c
-static VALUE window_attroff();
-static VALUE window_attron();
-static VALUE window_attrset();
+static VALUE window_attroff(VALUE obj, VALUE attrs);
+static VALUE window_attron(VALUE obj, VALUE attrs);
+static VALUE window_attrset(VALUE obj, VALUE attrs);
static void
no_window(void)
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 5e15176..94c8b6b 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -164,14 +164,14 @@ etc_getpwnam(VALUE obj, VALUE nam)
#ifdef HAVE_GETPWENT
static int passwd_blocking = 0;
static VALUE
-passwd_ensure()
+passwd_ensure(void)
{
passwd_blocking = Qfalse;
return Qnil;
}
static VALUE
-passwd_iterate()
+passwd_iterate(void)
{
struct passwd *pw;
@@ -368,14 +368,14 @@ etc_getgrnam(VALUE obj, VALUE nam)
#ifdef HAVE_GETGRENT
static int group_blocking = 0;
static VALUE
-group_ensure()
+group_ensure(void)
{
group_blocking = Qfalse;
return Qnil;
}
static VALUE
-group_iterate()
+group_iterate(void)
{
struct group *pw;
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index ffe5104..9af9339 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -750,7 +750,7 @@ bsock_recv_nonblock(int argc, VALUE *argv, VALUE sock)
}
static VALUE
-bsock_do_not_rev_lookup()
+bsock_do_not_rev_lookup(void)
{
return do_not_reverse_lookup?Qtrue:Qfalse;
}
diff --git a/ext/syck/node.c b/ext/syck/node.c
index cbc2adb..47bce64 100644
--- a/ext/syck/node.c
+++ b/ext/syck/node.c
@@ -46,7 +46,7 @@ syck_free_node( SyckNode *n )
}
SyckNode *
-syck_alloc_map()
+syck_alloc_map(void)
{
SyckNode *n;
struct SyckMap *m;
@@ -65,7 +65,7 @@ syck_alloc_map()
}
SyckNode *
-syck_alloc_seq()
+syck_alloc_seq(void)
{
SyckNode *n;
struct SyckSeq *s;
@@ -83,7 +83,7 @@ syck_alloc_seq()
}
SyckNode *
-syck_alloc_str()
+syck_alloc_str(void)
{
SyckNode *n;
struct SyckStr *s;
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 371ef15..1966a2d 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -60,10 +60,10 @@ static VALUE oDefaultResolver, oGenericResolver;
/*
* my private collection of numerical oddities.
*/
-static double S_zero() { return 0.0; }
-static double S_one() { return 1.0; }
-static double S_inf() { return S_one() / S_zero(); }
-static double S_nan() { return S_zero() / S_zero(); }
+static double S_zero(void) { return 0.0; }
+static double S_one(void) { return 1.0; }
+static double S_inf(void) { return S_one() / S_zero(); }
+static double S_nan(void) { return S_zero() / S_zero(); }
static VALUE syck_node_transform( VALUE );
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index daf5316..bab7ee5 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -155,7 +155,7 @@ syck_parser_set_root_on_error( SyckParser *p, SYMID roer )
* Allocate the parser
*/
SyckParser *
-syck_new_parser()
+syck_new_parser(void)
{
SyckParser *p;
p = S_ALLOC( SyckParser );
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 0833644..8d878a4 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -390,7 +390,7 @@ SyckLevel *syck_emitter_parent_level( SyckEmitter * );
void syck_emitter_pop_level( SyckEmitter * );
void syck_emitter_add_level( SyckEmitter *, int, enum syck_level_status );
void syck_emitter_reset_levels( SyckEmitter * );
-SyckParser *syck_new_parser();
+SyckParser *syck_new_parser(void);
void syck_free_parser( SyckParser * );
void syck_parser_set_root_on_error( SyckParser *, SYMID );
void syck_parser_implicit_typing( SyckParser *, int );
@@ -416,9 +416,9 @@ char *syck_yaml2byte( char * );
/*
* Allocation prototypes
*/
-SyckNode *syck_alloc_map();
-SyckNode *syck_alloc_seq();
-SyckNode *syck_alloc_str();
+SyckNode *syck_alloc_map(void);
+SyckNode *syck_alloc_seq(void);
+SyckNode *syck_alloc_str(void);
void syck_free_node( SyckNode * );
void syck_free_members( SyckNode * );
SyckNode *syck_new_str( const char *, enum scalar_style );