examples: remove dead variable stores

Closes https://github.com/curl/curl/pull/3919
This commit is contained in:
Marcel Raad 2019-05-21 10:58:21 +02:00
parent 10b7067eb7
commit f91baf842a
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
4 changed files with 34 additions and 35 deletions

View file

@ -31,14 +31,14 @@ int main(void)
{
CURL *curl;
CURLcode res = CURLE_OK;
struct curl_slist *host = NULL;
/* Each single name resolve string should be written using the format
HOST:PORT:ADDRESS where HOST is the name libcurl will try to resolve,
PORT is the port number of the service where libcurl wants to connect to
the HOST and ADDRESS is the numerical IP address
*/
host = curl_slist_append(NULL, "example.com:443:127.0.0.1");
struct curl_slist *host = curl_slist_append(NULL,
"example.com:443:127.0.0.1");
curl = curl_easy_init();
if(curl) {