]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: fix compile errors in `Curl_conninfo_local`
authorLayla <layla@insightfulvr.com>
Fri, 29 Jan 2021 19:21:35 +0000 (14:21 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Jan 2021 22:30:50 +0000 (23:30 +0100)
.. for the `#else` (`!HAVE_GETSOCKNAME`) case

Fixes https://github.com/curl/curl/issues/6548
Closes #6549

Signed-off-by: Layla <layla@insightfulvr.com>
lib/connect.c

index 1e9434bb6b00a36032b53be18cfd276f43152b20..baab1840e1dde24a33ee024a870d5cd81a0dda17 100644 (file)
@@ -737,8 +737,9 @@ void Curl_conninfo_local(struct Curl_easy *data, curl_socket_t sockfd,
   }
 #else
   (void)data;
-  (void)conn;
   (void)sockfd;
+  (void)local_ip;
+  (void)local_port;
 #endif
 }