summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 14:41:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 14:41:38 +0000
commit88270e77731076eff275f767c762de5b954fa78b (patch)
tree1b8928cadf36d17e387a8835c56df0d37ac49c01 /win32/win32.c
parent102a2c2e805ad382919646f5907866df36d51231 (diff)
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
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 15c6020..d5bf292 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;