diff --git a/mdns_avahi.c b/mdns_avahi.c index fcbbe484..47ff8a1d 100644 --- a/mdns_avahi.c +++ b/mdns_avahi.c @@ -97,7 +97,7 @@ static void resolve_callback(AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIn if (dacpid) { dacpid += strlen("iTunes_Ctrl_"); while (*dacpid == '0') - dacpid++; // remove any leading zeroes + dacpid++; // skip any leading zeroes if (strcmp(dacpid, dbs->dacp_id) == 0) { debug(3, "resolve_callback: client dacp_id \"%s\" dacp port: %u.", dbs->dacp_id, port); #ifdef CONFIG_DACP_CLIENT @@ -153,7 +153,7 @@ static void browse_callback(AvahiServiceBrowser *b, AvahiIfIndex interface, Avah if (dacpid) { dacpid += strlen("iTunes_Ctrl_"); while (*dacpid == '0') - dacpid++; // remove any leading zeroes + dacpid++; // skip any leading zeroes if ((dbs->dacp_id) && (strcmp(dacpid, dbs->dacp_id) == 0)) dacp_monitor_port_update_callback(dbs->dacp_id, 0); // say the port is withdrawn } else {