1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
usa 2004-04-06 04:13:24 +00:00
parent e4d66f4d6e
commit 3f56949401
2 changed files with 9 additions and 3 deletions

View file

@ -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>
* error.c (Init_Exception): remove Exception#to_str. [Ruby2]

View file

@ -528,6 +528,7 @@ bsock_do_not_rev_lookup_set(self, val)
return val;
}
NORETURN(static void raise_socket_error _((char *, int)));
static void
raise_socket_error(reason, error)
char *reason;
@ -1143,13 +1144,12 @@ make_hostent(host, addr, ipaddr)
struct addrinfo* addr;
VALUE (*ipaddr)_((struct sockaddr*, size_t));
{
VALUE ary;
struct hostent_arg arg;
arg.host = host;
arg.addr = addr;
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);
}