From: Yang Tse Date: Thu, 3 Aug 2006 11:41:49 +0000 (+0000) Subject: Silence compiler warning 'unused parameter running_handles' in function multi_runsing... X-Git-Tag: curl-7_15_5~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d211fcd34fe1c667abb55f5a1f56da8824faeb52;p=thirdparty%2Fcurl.git Silence compiler warning 'unused parameter running_handles' in function multi_runsingle(). This is done here returning multi->num_alive in the running_handles parameter even when functions that call multi_runsingle() at this moment overwrite the returned value with the one that is valid when those functions curl_multi_perform() and multi_socket() have removed expired timers from the splay. Most probably, parameter 'running_handles' in function multi_runsingle() should be just removed. --- diff --git a/lib/multi.c b/lib/multi.c index 4d8a89fb5a..3190c53b05 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -935,6 +935,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, multi->num_msgs++; /* increase message counter */ } + *running_handles = multi->num_alive; return result; }