diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-21 10:58:21 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-22 10:06:25 +0200 |
commit | f91baf842ac869f6a849ce4ac4c5ede8a3b49fd2 (patch) | |
tree | e795873bb8088d762b2a779746b71b7177e69385 /docs/examples/resolve.c | |
parent | 10b7067eb722bf2bc19f4dd6d97199be705baea2 (diff) |
examples: remove dead variable stores
Closes https://github.com/curl/curl/pull/3919
Diffstat (limited to 'docs/examples/resolve.c')
-rw-r--r-- | docs/examples/resolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/resolve.c b/docs/examples/resolve.c index c3b52d6f0..c0b541500 100644 --- a/docs/examples/resolve.c +++ b/docs/examples/resolve.c @@ -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) { |