mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* intern.h, struct.c (rb_struct_iv_get): constified.
* marshal.c: avoid one VC++6 warning for implicit conversion from int to char. * ruby.h: ANSI styled. * bcc32/Makefile.sub (HAVE_HYPOT): added. * ext/socket/extconf.rb: BeOS is only one platform should call closesocket, so check __BEOS__ macro directly. (I was worried accidently HAVE_CLOSESOCKET is defined on windows again because it has it) * ext/socket/{getaddrinfo.c,socket.c}: ditto. ... these are all cosmetic changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4236d6e71
commit
73f94bb851
9 changed files with 33 additions and 30 deletions
|
@ -437,7 +437,7 @@ getaddrinfo(hostname, servname, hints, res)
|
|||
s = socket(afd->a_af, SOCK_DGRAM, 0);
|
||||
if (s < 0)
|
||||
continue;
|
||||
#if defined(HAVE_CLOSESOCKET)
|
||||
#if defined(__BEOS__)
|
||||
closesocket(s);
|
||||
#else
|
||||
close(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue