From: W.C.A. Wijngaards Date: Thu, 28 Jan 2021 08:04:00 +0000 (+0100) Subject: - Annotate that we ignore the return value of if_indextoname. X-Git-Tag: release-1.13.1rc1~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d700e1f850fca1c687789e57f9c43236474a133;p=thirdparty%2Funbound.git - Annotate that we ignore the return value of if_indextoname. --- diff --git a/doc/Changelog b/doc/Changelog index 0ccec087a..268d51ff2 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +28 January 2022: Wouter + - Annotate that we ignore the return value of if_indextoname. + 26 January 2022: George - Merge PR #408 from fobser: Prevent a few more yacc clashes. - Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 629d4de72..b790660f2 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -1456,7 +1456,7 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres log_err("inet_ntop failed"); return 0; } - if_indextoname(in6->sin6_scope_id, + (void)if_indextoname(in6->sin6_scope_id, (char *)if_index_name); if (strlen(if_index_name) != 0) { snprintf(addr_buf, sizeof(addr_buf),