From 28b9f11d5a4b878adb50a3e5472ceea8c462ed4a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 30 Sep 2014 05:25:32 +0000 Subject: protoize no-arguments functions git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/init.c | 2 +- ext/socket/raddrinfo.c | 2 +- ext/socket/socket.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/socket') diff --git a/ext/socket/init.c b/ext/socket/init.c index bcc1e52d50..c3f33964a8 100644 --- a/ext/socket/init.c +++ b/ext/socket/init.c @@ -594,7 +594,7 @@ rsock_getfamily(int sockfd) } void -rsock_init_socket_init() +rsock_init_socket_init(void) { /* * SocketError is the error class for socket. diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 8e6434717a..1d2b9f953e 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -716,7 +716,7 @@ get_addrinfo(VALUE self) static rb_addrinfo_t * -alloc_addrinfo() +alloc_addrinfo(void) { rb_addrinfo_t *rai = ZALLOC(rb_addrinfo_t); rai->inspectname = Qnil; diff --git a/ext/socket/socket.c b/ext/socket/socket.c index f27383d61c..81028c5afb 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -2025,7 +2025,7 @@ socket_s_ip_address_list(VALUE self) #endif void -Init_socket() +Init_socket(void) { rsock_init_basicsocket(); -- cgit v1.2.3