mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (make_hostent): a bug in brace position.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b07337fcb3
commit
32ceec70be
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
Sun Jan 11 02:35:53 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (make_hostent): a bug in brace position.
|
||||
|
||||
* configure.in: install rdoc by default. if you do not want to
|
||||
install rdoc, specify --disable-install-doc.
|
||||
|
||||
|
|
|
@ -1061,8 +1061,8 @@ make_hostent(addr, ipaddr)
|
|||
}
|
||||
#if defined(HAVE_GETIPNODEBYNAME)
|
||||
freehostent(h);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else {
|
||||
names = rb_ary_new2(0);
|
||||
|
@ -1650,6 +1650,7 @@ unix_sysaccept(sock)
|
|||
return s_accept(0, fileno(fptr->f), (struct sockaddr*)&from, &fromlen);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYS_UN_H
|
||||
static VALUE
|
||||
unixaddr(sockaddr)
|
||||
struct sockaddr_un *sockaddr;
|
||||
|
@ -1657,6 +1658,7 @@ unixaddr(sockaddr)
|
|||
return rb_assoc_new(rb_str_new2("AF_UNIX"),
|
||||
rb_str_new2(sockaddr->sun_path));
|
||||
}
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
unix_addr(sock)
|
||||
|
|
Loading…
Reference in a new issue