mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:23:36 +03:00
examples: remove dead variable stores
Closes https://github.com/curl/curl/pull/3919
This commit is contained in:
parent
10b7067eb7
commit
f91baf842a
4 changed files with 34 additions and 35 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue