diff options
Diffstat (limited to 'src/testcurl/https/test_empty_response.c')
-rw-r--r-- | src/testcurl/https/test_empty_response.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_empty_response.c b/src/testcurl/https/test_empty_response.c index d327786c..49174108 100644 --- a/src/testcurl/https/test_empty_response.c +++ b/src/testcurl/https/test_empty_response.c | |||
@@ -70,7 +70,7 @@ testInternalSelectGet () | |||
70 | fd_set rs; | 70 | fd_set rs; |
71 | fd_set ws; | 71 | fd_set ws; |
72 | fd_set es; | 72 | fd_set es; |
73 | MHD_socket max; | 73 | int maxposixs; /* Max socket number unused on W32 */ |
74 | int running; | 74 | int running; |
75 | struct CURLMsg *msg; | 75 | struct CURLMsg *msg; |
76 | time_t start; | 76 | time_t start; |
@@ -134,11 +134,11 @@ testInternalSelectGet () | |||
134 | start = time (NULL); | 134 | start = time (NULL); |
135 | while ((time (NULL) - start < 5) && (multi != NULL)) | 135 | while ((time (NULL) - start < 5) && (multi != NULL)) |
136 | { | 136 | { |
137 | max = 0; | 137 | maxposixs = -1; |
138 | FD_ZERO (&rs); | 138 | FD_ZERO (&rs); |
139 | FD_ZERO (&ws); | 139 | FD_ZERO (&ws); |
140 | FD_ZERO (&es); | 140 | FD_ZERO (&es); |
141 | mret = curl_multi_fdset (multi, &rs, &ws, &es, &max); | 141 | mret = curl_multi_fdset (multi, &rs, &ws, &es, &maxposixs); |
142 | if (mret != CURLM_OK) | 142 | if (mret != CURLM_OK) |
143 | { | 143 | { |
144 | curl_multi_remove_handle (multi, c); | 144 | curl_multi_remove_handle (multi, c); |
@@ -149,7 +149,7 @@ testInternalSelectGet () | |||
149 | } | 149 | } |
150 | tv.tv_sec = 0; | 150 | tv.tv_sec = 0; |
151 | tv.tv_usec = 1000; | 151 | tv.tv_usec = 1000; |
152 | select (max + 1, &rs, &ws, &es, &tv); | 152 | select (maxposixs + 1, &rs, &ws, &es, &tv); |
153 | curl_multi_perform (multi, &running); | 153 | curl_multi_perform (multi, &running); |
154 | if (running == 0) | 154 | if (running == 0) |
155 | { | 155 | { |