From 0dd41d0d78ff19d23e5c8e7b664855aa8bbe1e95 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 7 Jan 2009 22:53:41 +0000 Subject: * 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 --- ext/socket/socket.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ext') 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 -- cgit v1.2.3