]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_resolv: fix comment. 'entry' argument is not optional
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 15:17:31 +0000 (17:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 20:03:19 +0000 (22:03 +0200)
Reported-by: Joshua Rogers
Closes #18979

lib/hostip.c

index a6531c31711b8c04193a0f792f33fafba56b3e09..41db274c5d4e85695a9f4cb7a2eff22f42bb000a 100644 (file)
@@ -819,9 +819,9 @@ static CURLcode store_negative_resolve(struct Curl_easy *data,
 
 /*
  * Curl_resolv() is the main name resolve function within libcurl. It resolves
- * a name and returns a pointer to the entry in the 'entry' argument (if one
- * is provided). This function might return immediately if we are using asynch
- * resolves. See the return codes.
+ * a name and returns a pointer to the entry in the 'entry' argument. This
+ * function might return immediately if we are using asynch resolves. See the
+ * return codes.
  *
  * The cache entry we return will get its 'inuse' counter increased when this
  * function is used. You MUST call Curl_resolv_unlink() later (when you are