diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-30 05:25:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-30 05:25:32 +0000 |
commit | 28b9f11d5a4b878adb50a3e5472ceea8c462ed4a (patch) | |
tree | 0089b9a1bce84d5ec72badeae44b4e08f08a9c33 /ext/socket | |
parent | cf5450bb7c86c4eb83f0d468c73d987e4a3e7344 (diff) | |
download | ruby-28b9f11d5a4b878adb50a3e5472ceea8c462ed4a.tar.gz |
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/socket')
-rw-r--r-- | ext/socket/init.c | 2 | ||||
-rw-r--r-- | ext/socket/raddrinfo.c | 2 | ||||
-rw-r--r-- | ext/socket/socket.c | 2 |
3 files changed, 3 insertions, 3 deletions
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(); |