summaryrefslogtreecommitdiff
path: root/docs/examples/resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/resolve.c')
-rw-r--r--docs/examples/resolve.c4
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) {