mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +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
|
|
@ -70,16 +70,17 @@ int main(void)
|
|||
{
|
||||
CURL *curl;
|
||||
CURLcode res = CURLE_OK;
|
||||
struct curl_slist *headers = NULL;
|
||||
struct curl_slist *recipients = NULL;
|
||||
struct curl_slist *slist = NULL;
|
||||
curl_mime *mime;
|
||||
curl_mime *alt;
|
||||
curl_mimepart *part;
|
||||
const char **cpp;
|
||||
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
struct curl_slist *headers = NULL;
|
||||
struct curl_slist *recipients = NULL;
|
||||
struct curl_slist *slist = NULL;
|
||||
curl_mime *mime;
|
||||
curl_mime *alt;
|
||||
curl_mimepart *part;
|
||||
const char **cpp;
|
||||
|
||||
/* This is the URL for your mailserver */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue