summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2019-05-21 09:42:22 +0200
committerDaniel Gustafsson <daniel@yesql.se>2019-05-21 09:42:22 +0200
commit528b284e4b145ff38c5ab87b4d6daa5d796fd938 (patch)
tree41ac0e335dbe12f4f41f5d42f9f177c748133d2a /lib
parent8986d3c6f4f72cb4734f24ef297d31865e3018cc (diff)
downloadcurl-528b284e4b145ff38c5ab87b4d6daa5d796fd938.tar.gz
udpateconninfo: mark variable unused
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
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index b106fa872..002535b42 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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 */