]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_pause.md: use correct defines in example
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 May 2024 14:11:42 +0000 (16:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 May 2024 21:22:17 +0000 (23:22 +0200)
Spotted-by: Harry Sintonen
Closes #13664

docs/libcurl/curl_easy_pause.md

index a185acd7949e2322e64996e86f67153717f5c588..5794dc50c6b834a339011544d3db812048e7afbb 100644 (file)
@@ -105,7 +105,7 @@ int main(void)
   CURL *curl = curl_easy_init();
   if(curl) {
     /* pause a transfer in both directions */
-    curl_easy_pause(curl, CURL_READFUNC_PAUSE | CURL_WRITEFUNC_PAUSE);
+    curl_easy_pause(curl, CURLPAUSE_RECV | CURLPAUSE_SEND);
 
   }
 }