]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cf-socket: Fix build when not HAVE_GETPEERNAME
authorRyan Schmidt <git@ryandesign.com>
Thu, 26 Jan 2023 01:05:02 +0000 (19:05 -0600)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 26 Jan 2023 08:30:26 +0000 (03:30 -0500)
Remove remaining references to conn and sockfd, which were removed from
the function signature when conninfo_remote was renamed to
conn_set_primary_ip in 6a8d7ef.

Closes https://github.com/curl/curl/pull/10343

lib/cf-socket.c

index 72fc804dd2c1e3afc6502fea6e4b0ad70c0664e7..98565aed4cd37696207252568dbcda1c4dc15b9e 100644 (file)
@@ -1174,8 +1174,6 @@ static void conn_set_primary_ip(struct Curl_cfilter *cf,
 #else
   cf->conn->primary_ip[0] = 0;
   (void)data;
-  (void)conn;
-  (void)sockfd;
 #endif
 }