aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/multi-post.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/multi-post.c')
-rw-r--r--docs/examples/multi-post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/multi-post.c b/docs/examples/multi-post.c
index c26338b59..965a2c3f6 100644
--- a/docs/examples/multi-post.c
+++ b/docs/examples/multi-post.c
@@ -80,7 +80,7 @@ int main(void)
curl_multi_perform(multi_handle, &still_running);
- while(still_running) {
+ do {
struct timeval timeout;
int rc; /* select() return code */
@@ -131,7 +131,7 @@ int main(void)
printf("running: %d!\n", still_running);
break;
}
- }
+ } while(still_running);
curl_multi_cleanup(multi_handle);