mirror of
https://github.com/curl/curl.git
synced 2026-07-28 11:53:05 +03:00
examples: reduce variable scopes
Closes https://github.com/curl/curl/pull/3919
This commit is contained in:
parent
918987a844
commit
10b7067eb7
11 changed files with 51 additions and 51 deletions
|
|
@ -85,14 +85,15 @@ int main(void)
|
|||
{
|
||||
CURL *curl;
|
||||
CURLcode res = CURLE_OK;
|
||||
const char **p;
|
||||
long infilesize;
|
||||
struct upload_status upload_ctx;
|
||||
|
||||
upload_ctx.lines_read = 0;
|
||||
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
const char **p;
|
||||
long infilesize;
|
||||
struct upload_status upload_ctx;
|
||||
|
||||
upload_ctx.lines_read = 0;
|
||||
|
||||
/* Set username and password */
|
||||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue