Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
fetch: constify the variable used to report the connected ip
Baptiste Daroussin committed 5 months ago
commit 5c7a7d6efbe8c2b26880b26c3c325d5bd4113e88
parent e133b21
1 file changed +1 -1
modified libpkg/fetch_libcurl.c
@@ -203,7 +203,7 @@ curl_do_fetch(struct curl_userdata *data, CURL *cl, struct curl_repodata *cr, CU
			long response_code = 0;
			curl_easy_getinfo(eh, CURLINFO_RESPONSE_CODE, &response_code);

-
			char *ip = NULL;
+
			const char *ip = NULL;
			if (curl_easy_getinfo(eh, CURLINFO_PRIMARY_IP, &ip) == CURLE_OK && ip != NULL) {
				pkg_dbg(PKG_DBG_FETCH, 1, "CURL> connected to IP %s", ip);
		}