From: Sami Kerola Date: Sun, 4 Sep 2016 16:08:17 +0000 (+0100) Subject: cleanup: remove more/bottom labels header separation from mpls X-Git-Tag: v0.88~26^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90d6f4eb7f4fcbefa3254b95bbccd70c914a8274;p=thirdparty%2Fmtr.git cleanup: remove more/bottom labels header separation from mpls 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. --- diff --git a/curses.c b/curses.c index cec844d..8b012f0 100644 --- 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 */