mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as
int. This suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
301821bd45
commit
2b792abd69
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue May 7 12:10:52 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (socket_s_ip_address_list): Cast EXTRA_SPACE as
|
||||
int. This suppress a warning.
|
||||
|
||||
Tue May 7 12:09:29 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/extconf.rb: Set close_fds false for Cygwin.
|
||||
|
|
|
@ -1759,7 +1759,7 @@ socket_s_ip_address_list(VALUE self)
|
|||
#elif defined(SIOCGIFCONF)
|
||||
int fd = -1;
|
||||
int ret;
|
||||
#define EXTRA_SPACE (sizeof(struct ifconf) + sizeof(union_sockaddr))
|
||||
#define EXTRA_SPACE ((int)(sizeof(struct ifconf) + sizeof(union_sockaddr)))
|
||||
char initbuf[4096+EXTRA_SPACE];
|
||||
char *buf = initbuf;
|
||||
int bufsize;
|
||||
|
|
Loading…
Add table
Reference in a new issue