]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: rename function due to name-clash in Watt-32
authorDaniel Stenberg <daniel@haxx.se>
Tue, 27 Sep 2022 07:32:20 +0000 (09:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 27 Sep 2022 07:34:22 +0000 (09:34 +0200)
Follow-up to 2481dbe5f4f58 and applies the change the way it was
intended.

lib/curl_setup.h
lib/url.c

index eb3625908527f8c96ac998b35dc69e843a624ad6..03a6afc4f6beee2b713f8332c893c34eaaafae1a 100644 (file)
 #    ifdef byte
 #      undef byte
 #    endif
-#    ifdef resolve_ip
-#      undef resolve_ip
-#    endif
 
 #  endif /* MSDOS */
 
index 33aa19be95d0ebab013fe0dd3bbdfa00b8fcf8c4..65eefb86e2e5961f26675d82b0378c03cd22394a 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3503,9 +3503,9 @@ static CURLcode resolve_proxy(struct Curl_easy *data,
 }
 #endif
 
-static CURLcode resolve_ip(struct Curl_easy *data,
-                           struct connectdata *conn,
-                           bool *async)
+static CURLcode resolve_host(struct Curl_easy *data,
+                             struct connectdata *conn,
+                             bool *async)
 {
   struct Curl_dns_entry *hostaddr = NULL;
   struct hostname *connhost;
@@ -3571,7 +3571,7 @@ static CURLcode resolve_fresh(struct Curl_easy *data,
     return resolve_proxy(data, conn, async);
 #endif
 
-  return resolve_ip(data, conn, async);
+  return resolve_host(data, conn, async);
 }
 
 /*************************************************************