mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (make_hostent): must return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5443c0f803
commit
8e773df6d3
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Apr 6 13:21:30 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (make_hostent): must return value.
|
||||||
|
|
||||||
Tue Apr 6 00:05:30 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Tue Apr 6 00:05:30 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* lib/rinda/rinda.rb: add require 'drb/drb'
|
* lib/rinda/rinda.rb: add require 'drb/drb'
|
||||||
|
|
|
@ -1098,13 +1098,12 @@ make_hostent(host, addr, ipaddr)
|
||||||
struct addrinfo* addr;
|
struct addrinfo* addr;
|
||||||
VALUE (*ipaddr)_((struct sockaddr*, size_t));
|
VALUE (*ipaddr)_((struct sockaddr*, size_t));
|
||||||
{
|
{
|
||||||
VALUE ary;
|
|
||||||
struct hostent_arg arg;
|
struct hostent_arg arg;
|
||||||
|
|
||||||
arg.host = host;
|
arg.host = host;
|
||||||
arg.addr = addr;
|
arg.addr = addr;
|
||||||
arg.ipaddr = ipaddr;
|
arg.ipaddr = ipaddr;
|
||||||
ary = rb_ensure(make_hostent_internal, (VALUE)&arg,
|
return rb_ensure(make_hostent_internal, (VALUE)&arg,
|
||||||
RUBY_METHOD_FUNC(freeaddrinfo), (VALUE)addr);
|
RUBY_METHOD_FUNC(freeaddrinfo), (VALUE)addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue