aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-08-03 11:41:49 +0000
committerYang Tse <yangsita@gmail.com>2006-08-03 11:41:49 +0000
commitd211fcd34fe1c667abb55f5a1f56da8824faeb52 (patch)
tree8589005f1935543dd455b1b8c42d828dc05eefec
parent159834171e0ae174634cd88385b223d0dafec359 (diff)
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.
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 4d8a89fb5..3190c53b0 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;
}