summaryrefslogtreecommitdiff
path: root/tests/libtest/lib540.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-10 12:29:32 +0000
committerYang Tse <yangsita@gmail.com>2009-10-10 12:29:32 +0000
commit640e49976f34d766124cb6988dc4849c4acab6d0 (patch)
tree78d4ae77225e32e08a33cea945ec244adb67ef96 /tests/libtest/lib540.c
parentf1aa936d2c48a5a4cd860d22b8db566a1dd848b2 (diff)
downloadcurl-640e49976f34d766124cb6988dc4849c4acab6d0.tar.gz
Fix compiler warning: loop without body
Diffstat (limited to 'tests/libtest/lib540.c')
-rw-r--r--tests/libtest/lib540.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c
index cfaa1622d..1ba705a9c 100644
--- a/tests/libtest/lib540.c
+++ b/tests/libtest/lib540.c
@@ -44,6 +44,7 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
struct curl_slist *headers)
{
CURLMsg *msg;
+ CURLMcode code;
long L;
int M, Q, U = -1;
fd_set R, W, E;
@@ -52,7 +53,10 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
init(cm, url, userpwd, headers);
while (U) {
- while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(cm, &U));
+
+ do {
+ code = curl_multi_perform(cm, &U);
+ } while (code == CURLM_CALL_MULTI_PERFORM);
if (U) {
FD_ZERO(&R);