Explicitly mark address port not used

On many places return value is ignored. Usually it means port is always
the same and not needed to be displayed. Unify warnings.
This commit is contained in:
Petr Mensik authored and Simon Kelley committed 2020-04-29 00:04:04 +01:00
1 parent 66adee85be
commit 51cdd1a227
4 files changed
+10 -10

No files matched your search

+4 -4
View File
@@ -643,7 +643,7 @@ int enumerate_interfaces(int reset)
if (l->iface->done)
{
iface = l->iface;
prettyprint_addr(&iface->addr, daemon->addrbuff);
(void)prettyprint_addr(&iface->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("stopped listening on %s(#%d): %s"),
iface->name, iface->index, daemon->addrbuff);
}
@@ -958,7 +958,7 @@ void create_bound_listeners(int dienow)
new->next = daemon->listeners;
daemon->listeners = new;
iface->done = 1;
prettyprint_addr(&iface->addr, daemon->addrbuff);
(void)prettyprint_addr(&iface->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("listening on %s(#%d): %s"),
iface->name, iface->index, daemon->addrbuff);
}
@@ -980,7 +980,7 @@ void create_bound_listeners(int dienow)
{
new->next = daemon->listeners;
daemon->listeners = new;
prettyprint_addr(&if_tmp->addr, daemon->addrbuff);
(void)prettyprint_addr(&if_tmp->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("listening on %s"), daemon->addrbuff);
}
}
@@ -1313,7 +1313,7 @@ void pre_allocate_sfds(void)
errno != 0 &&
option_bool(OPT_NOWILD))
{
prettyprint_addr(&srv->source_addr, daemon->namebuff);
(void)prettyprint_addr(&srv->source_addr, daemon->namebuff);
if (srv->interface[0] != 0)
{
strcat(daemon->namebuff, " ");