* ext/socket/socket.c (raise_socket_error): never return.
* ext/socket/socket.c (make_hostent): must return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e4d66f4d6e
commit
3f56949401
@ -1,3 +1,9 @@
|
|||||||
|
Tue Apr 6 13:11:48 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (raise_socket_error): never return.
|
||||||
|
|
||||||
|
* ext/socket/socket.c (make_hostent): must return value.
|
||||||
|
|
||||||
Tue Apr 6 00:14:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Apr 6 00:14:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* error.c (Init_Exception): remove Exception#to_str. [Ruby2]
|
* error.c (Init_Exception): remove Exception#to_str. [Ruby2]
|
||||||
|
@ -528,6 +528,7 @@ bsock_do_not_rev_lookup_set(self, val)
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NORETURN(static void raise_socket_error _((char *, int)));
|
||||||
static void
|
static void
|
||||||
raise_socket_error(reason, error)
|
raise_socket_error(reason, error)
|
||||||
char *reason;
|
char *reason;
|
||||||
@ -1143,14 +1144,13 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user