From 22d19ddb2d9c15d9b31c3b4bede63fdcf23c9452 Mon Sep 17 00:00:00 2001 From: Hugo Schmitt Date: Thu, 23 Mar 2017 10:35:41 -0300 Subject: [PATCH] Use WEB_PORT define instead of hardcoded "80" string --- examples/http_get/http_get.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/http_get/http_get.c b/examples/http_get/http_get.c index 0fe0ae1..5193d10 100644 --- a/examples/http_get/http_get.c +++ b/examples/http_get/http_get.c @@ -21,7 +21,7 @@ #include "ssid_config.h" #define WEB_SERVER "chainxor.org" -#define WEB_PORT 80 +#define WEB_PORT "80" #define WEB_URL "http://chainxor.org/" void http_get_task(void *pvParameters) @@ -37,7 +37,7 @@ void http_get_task(void *pvParameters) struct addrinfo *res; printf("Running DNS lookup for %s...\r\n", WEB_SERVER); - int err = getaddrinfo(WEB_SERVER, "80", &hints, &res); + int err = getaddrinfo(WEB_SERVER, WEB_PORT, &hints, &res); if(err != 0 || res == NULL) { printf("DNS lookup failed err=%d res=%p\r\n", err, res);