* 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
This commit is contained in:
parent
ccdcc971f6
commit
0dd41d0d78
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jan 8 07:52:55 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (init_unix_addrinfo): don't return a value.
|
||||||
|
|
||||||
Thu Jan 8 07:30:52 2009 Tanaka Akira <akr@fsij.org>
|
Thu Jan 8 07:30:52 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
|
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
|
||||||
|
@ -3918,11 +3918,10 @@ addrinfo_list_new(VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE
|
|||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_UN_H
|
#ifdef HAVE_SYS_UN_H
|
||||||
static VALUE
|
static void
|
||||||
init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path)
|
init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path)
|
||||||
{
|
{
|
||||||
struct sockaddr_un un;
|
struct sockaddr_un un;
|
||||||
VALUE addr;
|
|
||||||
|
|
||||||
StringValue(path);
|
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));
|
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);
|
init_addrinfo(rai, (struct sockaddr *)&un, sizeof(un), AF_UNIX, SOCK_STREAM, 0, Qnil, Qnil);
|
||||||
|
|
||||||
return addr;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user