mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03: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:
parent
0feb762fc0
commit
651e04c4c8
1 changed files with 3 additions and 3 deletions
|
|
@ -121,11 +121,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
|
|||
|
||||
#ifndef ENABLE_IPV6
|
||||
(void) remote_scope;
|
||||
|
||||
#ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
|
||||
(void) remote_scope_id;
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID) || \
|
||||
!defined(ENABLE_IPV6)
|
||||
(void) remote_scope_id;
|
||||
#endif
|
||||
|
||||
if(getifaddrs(&head) >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue