summaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-07 22:53:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-07 22:53:41 +0000
commit5269d9baaabcf2f60182f2148892347bfd951a8c (patch)
tree4507c7bba972dd2c4864e6bccfe899948d687db9 /ext/socket/socket.c
parentc1cab3eea53686bb454a9c8aef3582cd4d7173bf (diff)
downloadruby-5269d9baaabcf2f60182f2148892347bfd951a8c.tar.gz
ruby-5269d9baaabcf2f60182f2148892347bfd951a8c.tar.xz
ruby-5269d9baaabcf2f60182f2148892347bfd951a8c.zip
* ext/socket/socket.c (init_unix_addrinfo): don't return a value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index aa959aa4e..f5c6974ba 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