]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
udpateconninfo: mark variable unused
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 21 May 2019 07:42:22 +0000 (09:42 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 21 May 2019 07:42:22 +0000 (09:42 +0200)
When compiling without getpeername() or getsockname(), the sockfd
paramter to Curl_udpateconninfo() became unused after commit e91e481612
added ifdef guards.

Closes #3910
Fixes https://curl.haxx.se/dev/log.cgi?id=20190520172441-32196
Reviewed-by: Marcel Raad, Daniel Stenberg
lib/connect.c

index b106fa872050107967d74ce5b62096df2771b2b7..002535b429a5b8a538086aec32b1d0b54152fe82 100644 (file)
@@ -726,6 +726,8 @@ void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd)
     }
 #endif
   }
+#else /* !HAVE_GETSOCKNAME && !HAVE_GETPEERNAME */
+  (void)sockfd; /* unused */
 #endif
 
   /* persist connection info in session handle */