From 0dd41d0d78ff19d23e5c8e7b664855aa8bbe1e95 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 7 Jan 2009 22:53:41 +0000 Subject: [PATCH] * ext/socket/socket.c (init_unix_addrinfo): don't return a value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/socket/socket.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57b059f924..4e2200198a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 8 07:52:55 2009 Tanaka Akira + + * ext/socket/socket.c (init_unix_addrinfo): don't return a value. + Thu Jan 8 07:30:52 2009 Tanaka Akira * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index aa959aa4e9..f5c6974ba2 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -3918,11 +3918,10 @@ addrinfo_list_new(VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE #ifdef HAVE_SYS_UN_H -static VALUE +static void init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path) { struct sockaddr_un un; - VALUE addr; StringValue(path); @@ -3936,8 +3935,6 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path) memcpy((void*)&un.sun_path, RSTRING_PTR(path), RSTRING_LEN(path)); init_addrinfo(rai, (struct sockaddr *)&un, sizeof(un), AF_UNIX, SOCK_STREAM, 0, Qnil, Qnil); - - return addr; } #endif