mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58dd5de966
commit
58e68a3660
12 changed files with 45 additions and 10 deletions
|
|
@ -511,6 +511,7 @@ ip_addrsetup(host, port)
|
|||
long i = NUM2LONG(host);
|
||||
|
||||
mkinetaddr(htonl(i), hbuf, sizeof(hbuf));
|
||||
hostp = hbuf;
|
||||
}
|
||||
else {
|
||||
char *name = STR2CSTR(host);
|
||||
|
|
@ -524,8 +525,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