mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
examples: consistent variable naming across examples
- 'CURL *' handles are called 'curl' - 'CURLM *' handles are called 'multi' - write callbacks are called 'write_cb' - read callbacs are called 'read_cb' - CURLcode variables are called 'res' It makes the examples look and feel more consistent. It allows for easier copy and pasting between examples. Closes #19299
This commit is contained in:
parent
0313223853
commit
928363f28c
59 changed files with 715 additions and 725 deletions
|
|
@ -28,19 +28,19 @@
|
|||
#include <stdio.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
static void my_lock(CURL *handle, curl_lock_data data,
|
||||
static void my_lock(CURL *curl, curl_lock_data data,
|
||||
curl_lock_access laccess, void *useptr)
|
||||
{
|
||||
(void)handle;
|
||||
(void)curl;
|
||||
(void)data;
|
||||
(void)laccess;
|
||||
(void)useptr;
|
||||
fprintf(stderr, "-> Mutex lock\n");
|
||||
}
|
||||
|
||||
static void my_unlock(CURL *handle, curl_lock_data data, void *useptr)
|
||||
static void my_unlock(CURL *curl, curl_lock_data data, void *useptr)
|
||||
{
|
||||
(void)handle;
|
||||
(void)curl;
|
||||
(void)data;
|
||||
(void)useptr;
|
||||
fprintf(stderr, "<- Mutex unlock\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue