- Annotate that we ignore the return value of if_indextoname.

This commit is contained in:
W.C.A. Wijngaards 2021-01-28 09:04:00 +01:00
parent 8ad4c9f92a
commit 9d700e1f85
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
28 January 2022: Wouter
- Annotate that we ignore the return value of if_indextoname.
26 January 2022: George 26 January 2022: George
- Merge PR #408 from fobser: Prevent a few more yacc clashes. - Merge PR #408 from fobser: Prevent a few more yacc clashes.
- Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the - Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the

View file

@ -1456,7 +1456,7 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres
log_err("inet_ntop failed"); log_err("inet_ntop failed");
return 0; return 0;
} }
if_indextoname(in6->sin6_scope_id, (void)if_indextoname(in6->sin6_scope_id,
(char *)if_index_name); (char *)if_index_name);
if (strlen(if_index_name) != 0) { if (strlen(if_index_name) != 0) {
snprintf(addr_buf, sizeof(addr_buf), snprintf(addr_buf, sizeof(addr_buf),