mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-02-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0c123a83f0
commit
4890f3a684
20 changed files with 243 additions and 136 deletions
|
@ -519,6 +519,7 @@ ip_addrsetup(host, port)
|
|||
long i = NUM2LONG(host);
|
||||
|
||||
mkinetaddr(htonl(i), hbuf, sizeof(hbuf));
|
||||
hostp = hbuf;
|
||||
}
|
||||
else {
|
||||
char *name = STR2CSTR(host);
|
||||
|
@ -532,8 +533,8 @@ ip_addrsetup(host, port)
|
|||
else {
|
||||
strcpy(hbuf, name);
|
||||
}
|
||||
hostp = hbuf;
|
||||
}
|
||||
hostp = hbuf;
|
||||
if (NIL_P(port)) {
|
||||
portp = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue