]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
cleanup: remove more/bottom labels header separation from mpls
authorSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 16:08:17 +0000 (17:08 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 20:13:40 +0000 (21:13 +0100)
Commit a932cb2abc85651ca6f33a06d7b64448c1d27f65 added this separation, but
after five years and a bit the printouts has not become different.  It is
time to remove this todo item.

curses.c

index cec844de2a721bacda58725ac7ca7634ba8a5ef2..8b012f01b516cabf4cd720dc3bf28c051b1b876a 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -410,13 +410,7 @@ static void mtr_curses_hosts(struct mtr_ctl *ctl, int startstat)
       printw("%s", buf);
 
       for (k=0; k < mpls->labels && ctl->enablempls; k++) {
-        if((k+1 < mpls->labels) || (mpls->labels == 1)) {
-           /* if we have more labels */
-           printw("\n    [MPLS: Lbl %lu Exp %u S %u TTL %u]", mpls->label[k], mpls->exp[k], mpls->s[k], mpls->ttl[k]);
-        } else {
-           /* bottom label */
-           printw("\n    [MPLS: Lbl %lu Exp %u S %u TTL %u]", mpls->label[k], mpls->exp[k], mpls->s[k], mpls->ttl[k]);
-        }
+        printw("\n    [MPLS: Lbl %lu Exp %u S %u TTL %u]", mpls->label[k], mpls->exp[k], mpls->s[k], mpls->ttl[k]);
       }
 
       /* Multi path */