diff --git a/Code/IO/otbCurlHelper.cxx b/Code/IO/otbCurlHelper.cxx index 890244431e7f2a753c7ffac440dd885424e8e7ce..5f83b9b9a36cb889c85a2267e041ecce22381563 100644 --- a/Code/IO/otbCurlHelper.cxx +++ b/Code/IO/otbCurlHelper.cxx @@ -180,8 +180,7 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs, // Perform int lStillRunning; - while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(multiHandle, &lStillRunning)) -; + while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(multiHandle, &lStillRunning)); // Now get that URL while (lStillRunning) @@ -213,13 +212,10 @@ int CurlHelper::RetrieveFileMulti(const std::vector<std::string>& listURLs, /* select error */ break; case 0: - /* timeout */ + /* timeout */ default: /* timeout or readable/writable sockets */ - while ( - CURLM_CALL_MULTI_PERFORM == curl_multi_perform(multiHandle, &lStillRunning) - ) - ; + while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(multiHandle, &lStillRunning)); break; } }