mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
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:
committed by
Simon Kelley
parent
66adee85be
commit
51cdd1a227
@@ -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, " ");
|
||||
|
||||
Reference in New Issue
Block a user