]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Change a slightly misleading comment
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 8 Jul 2020 20:21:42 +0000 (21:21 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 8 Jul 2020 20:21:42 +0000 (21:21 +0100)
mdns_avahi.c

index fcbbe4847f920379a81c49db143dc1abe3c6c43e..47ff8a1d1b39b1f0f9aa9b48184c5cf4a6c68222 100644 (file)
@@ -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 {