]> git.sur5r.net Git - i3/i3status/commitdiff
Update comment as in #247 (#254)
authorEmeric Planet <emeric.planet@datadoghq.com>
Mon, 11 Dec 2017 11:16:00 +0000 (12:16 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 11 Dec 2017 11:16:00 +0000 (12:16 +0100)
src/print_wireless_info.c

index d229538d7586f7a86b810a05df3032b23b3bfbe5..c3b52708f743a61f1ba218bc62b2e7bd7a0b0eac 100644 (file)
@@ -489,7 +489,10 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface,
     char *ipv4_address = sstrdup(get_ip_addr(interface, AF_INET));
     char *ipv6_address = sstrdup(get_ip_addr(interface, AF_INET6));
 
-    // Removing '%' and following characters from IPv6
+    /*
+     * Removing '%' and following characters from IPv6 since the interface identifier is redundant,
+     * as the output already includes the interface name.
+    */
     if (ipv6_address != NULL) {
         char *prct_ptr = strstr(ipv6_address, "%");
         if (prct_ptr != NULL) {