docs: add missing return statement in examples

Closes #17024
This commit is contained in:
Pavel Kropachev 2025-04-11 13:57:14 +03:00 committed by Daniel Stenberg
parent 4646976f3b
commit d9a86b6729
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 10 additions and 8 deletions

View File

@ -47,15 +47,16 @@ struct priv {
static int timerfunc(CURLM *multi, long timeout_ms, void *clientp)
{
struct priv *mydata = clientp;
printf("our ptr: %p\n", mydata->custom);
struct priv *mydata = clientp;
printf("our ptr: %p\n", mydata->custom);
if(timeout_ms) {
/* this is the new single timeout to wait for */
}
else {
/* delete the timeout, nothing to wait for now */
}
if(timeout_ms) {
/* this is the new single timeout to wait for */
}
else {
/* delete the timeout, nothing to wait for now */
}
return 0;
}
int main(void)

View File

@ -88,6 +88,7 @@ static int timerfunc(CURLM *multi, long timeout_ms, void *clientp)
else {
/* delete the timeout, nothing to wait for now */
}
return 0;
}
int main(void)