mirror of
https://github.com/curl/curl.git
synced 2026-08-02 19:30:29 +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
|
|
@ -81,12 +81,12 @@ static void dump(const char *text, FILE *stream, unsigned char *ptr,
|
|||
fflush(stream);
|
||||
}
|
||||
|
||||
static int my_trace(CURL *handle, curl_infotype type,
|
||||
static int my_trace(CURL *curl, curl_infotype type,
|
||||
char *data, size_t size, void *userp)
|
||||
{
|
||||
struct data *config = (struct data *)userp;
|
||||
const char *text;
|
||||
(void)handle;
|
||||
(void)curl;
|
||||
|
||||
switch(type) {
|
||||
case CURLINFO_TEXT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue