mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (tcp_svr_init): local host to
init_inetsock() is VALUE but not pointer. * ext/socket/socket.c (sock_s_unpack_sockaddr_in): get rid of gcc-3 -O3 warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0371138ee
commit
3d2ddca6b2
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
Mon Dec 30 05:10:00 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* ext/socket/socket.c (tcp_svr_init): local host to
|
||||
init_inetsock() is VALUE but not pointer.
|
||||
|
||||
* ext/socket/socket.c (sock_s_unpack_sockaddr_in): get rid of
|
||||
gcc-3 -O3 warning.
|
||||
|
||||
Sun Dec 29 23:45:53 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* gc.c (gc_sweep): adjust GC trigger.
|
||||
|
|
|
@ -1129,9 +1129,9 @@ tcp_svr_init(argc, argv, sock)
|
|||
VALUE arg1, arg2;
|
||||
|
||||
if (rb_scan_args(argc, argv, "11", &arg1, &arg2) == 2)
|
||||
return init_inetsock(sock, arg1, arg2, NULL, Qnil, INET_SERVER);
|
||||
return init_inetsock(sock, arg1, arg2, Qnil, Qnil, INET_SERVER);
|
||||
else
|
||||
return init_inetsock(sock, Qnil, arg1, NULL, Qnil, INET_SERVER);
|
||||
return init_inetsock(sock, Qnil, arg1, Qnil, Qnil, INET_SERVER);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
@ -2334,7 +2334,7 @@ sock_s_unpack_sockaddr_in(self, addr)
|
|||
rb_raise(rb_eTypeError, "sockaddr_in size differs - %ld required; %d given",
|
||||
RSTRING(addr)->len, sizeof(struct sockaddr_in));
|
||||
}
|
||||
host = mkipaddr(sockaddr);
|
||||
host = mkipaddr((struct sockaddr*)sockaddr);
|
||||
OBJ_INFECT(host, addr);
|
||||
return rb_assoc_new(INT2NUM(ntohs(sockaddr->sin_port)), host);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue