mirror of
https://github.com/curl/curl.git
synced 2026-07-31 04:28:04 +03:00
examples/complicated: fix warnings, bump deprecated callback, tidy up
Also: make them C89, add consts. Closes #15785
This commit is contained in:
parent
fa0ccd9f1f
commit
37fb50a858
15 changed files with 199 additions and 132 deletions
|
|
@ -177,7 +177,7 @@ static int cb_timeout(CURLM *multi, long timeout_ms,
|
|||
if(timeout_ms == 0)
|
||||
timeout_ms = 1; /* 0 means call curl_multi_socket_action asap but NOT
|
||||
within the callback itself */
|
||||
uv_timer_start(&uv->timeout, on_uv_timeout, timeout_ms,
|
||||
uv_timer_start(&uv->timeout, on_uv_timeout, (uint64_t)timeout_ms,
|
||||
0); /* do not repeat */
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue