From: Emeric Planet Date: Mon, 11 Dec 2017 11:16:00 +0000 (+0100) Subject: Update comment as in #247 (#254) X-Git-Tag: 2.12~11 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3status;a=commitdiff_plain;h=657c0498dbc4eed26df8b7af1c87ea943c2bbdf6 Update comment as in #247 (#254) --- diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index d229538..c3b5270 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -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) {