1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

if2ip: fix compiler warning in ISO C90 mode

remote_scope_id is only used when both HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
and ENABLE_IPV6 are defined instead of only one of them.
This commit is contained in:
Marcel Raad 2017-06-20 22:33:56 +02:00
parent 0feb762fc0
commit 651e04c4c8
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4

View File

@ -121,11 +121,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
#ifndef ENABLE_IPV6 #ifndef ENABLE_IPV6
(void) remote_scope; (void) remote_scope;
#ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
(void) remote_scope_id;
#endif #endif
#if !defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID) || \
!defined(ENABLE_IPV6)
(void) remote_scope_id;
#endif #endif
if(getifaddrs(&head) >= 0) { if(getifaddrs(&head) >= 0) {