mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
socket: ai_addrlen is socklen_t
* ext/socket/raddrinfo.c (rsock_make_hostent): ai_addrlen is not size_t but socklen_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a60e2e5820
commit
66c1e7960c
4 changed files with 11 additions and 11 deletions
|
|
@ -32,7 +32,7 @@ tcp_init(int argc, VALUE *argv, VALUE sock)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
tcp_sockaddr(struct sockaddr *addr, size_t len)
|
||||
tcp_sockaddr(struct sockaddr *addr, socklen_t len)
|
||||
{
|
||||
return rsock_make_ipaddr(addr, len);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue