summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
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 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