diff --git a/docs/libcurl/opts/CURLMOPT_TIMERDATA.md b/docs/libcurl/opts/CURLMOPT_TIMERDATA.md index 06fd430614..69cd4e215d 100644 --- a/docs/libcurl/opts/CURLMOPT_TIMERDATA.md +++ b/docs/libcurl/opts/CURLMOPT_TIMERDATA.md @@ -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) diff --git a/docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.md b/docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.md index 2a09a0aef0..a4ecf622d7 100644 --- a/docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.md +++ b/docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.md @@ -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)