mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32.c: suppress warning
* win32/win32.c (do_select): unconstify timeout as select() declares it non-const. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
102a2c2e80
commit
88270e7773
1 changed files with 2 additions and 2 deletions
|
@ -2766,7 +2766,7 @@ is_invalid_handle(SOCKET sock)
|
|||
/* License: Artistic or GPL */
|
||||
static int
|
||||
do_select(int nfds, fd_set *rd, fd_set *wr, fd_set *ex,
|
||||
const struct timeval *timeout)
|
||||
struct timeval *timeout)
|
||||
{
|
||||
int r = 0;
|
||||
|
||||
|
@ -2911,7 +2911,7 @@ rb_w32_select_with_thread(int nfds, fd_set *rd, fd_set *wr, fd_set *ex,
|
|||
{
|
||||
struct timeval rest;
|
||||
const struct timeval wait = {0, 10 * 1000}; // 10ms
|
||||
const struct timeval zero = {0, 0}; // 0ms
|
||||
struct timeval zero = {0, 0}; // 0ms
|
||||
for (;;) {
|
||||
if (th && rb_w32_check_interrupt(th) != WAIT_TIMEOUT) {
|
||||
r = -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue