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
2019-07-04 20:28:08 +02:00
committed by Simon Kelley
parent 66adee85be
commit 51cdd1a227
4 changed files with 10 additions and 10 deletions

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, " ");