mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:03:37 +03:00
example: fix formatting nits
Also: - drop non-portable `__STRING()` macro use where still used. Closes #19746
This commit is contained in:
parent
c10dda9ebb
commit
aad3c2e8e1
50 changed files with 225 additions and 227 deletions
|
|
@ -37,8 +37,7 @@ struct MemoryStruct {
|
|||
size_t size;
|
||||
};
|
||||
|
||||
static size_t write_cb(void *contents, size_t size, size_t nmemb,
|
||||
void *userp)
|
||||
static size_t write_cb(void *contents, size_t size, size_t nmemb, void *userp)
|
||||
{
|
||||
size_t realsize = size * nmemb;
|
||||
struct MemoryStruct *mem = (struct MemoryStruct *)userp;
|
||||
|
|
@ -69,8 +68,8 @@ int main(void)
|
|||
if(res)
|
||||
return (int)res;
|
||||
|
||||
chunk.memory = malloc(1); /* grown as needed by the realloc above */
|
||||
chunk.size = 0; /* no data at this point */
|
||||
chunk.memory = malloc(1); /* grown as needed by the realloc above */
|
||||
chunk.size = 0; /* no data at this point */
|
||||
|
||||
/* init the curl session */
|
||||
curl = curl_easy_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue