diff options
author | MAntoniak <47522782+MAntoniak@users.noreply.github.com> | 2022-02-07 20:47:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-02-13 12:08:50 +0100 |
commit | 06eb208126e1c2ba37817c6f1f1d60f7975100b5 (patch) | |
tree | 943fad64136a2fdcd4caad2b441bb140411cb9b2 /lib/if2ip.h | |
parent | ae5e57c3042011d7aee64621a19fc01dfa2d1193 (diff) | |
download | curl-06eb208126e1c2ba37817c6f1f1d60f7975100b5.tar.gz |
misc: remove unused data when IPv6 is not supported
Closes #8430
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r-- | lib/if2ip.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h index 8e21eace5..a360d4a0e 100644 --- a/lib/if2ip.h +++ b/lib/if2ip.h @@ -42,8 +42,12 @@ typedef enum { IF2IP_FOUND = 2 /* The address has been stored in "buf" */ } if2ip_result_t; -if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, - unsigned int local_scope_id, const char *interf, +if2ip_result_t Curl_if2ip(int af, +#ifdef ENABLE_IPV6 + unsigned int remote_scope, + unsigned int local_scope_id, +#endif + const char *interf, char *buf, int buf_size); #ifdef __INTERIX |