]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
cleanup: Fix #ifdef structure which confuses 'ident'
authorMatt Kimball <matt.kimball@gmail.com>
Sat, 4 Feb 2017 21:18:13 +0000 (13:18 -0800)
committerMatt Kimball <matt.kimball@gmail.com>
Sat, 4 Feb 2017 21:18:13 +0000 (13:18 -0800)
The 'indent' tool is confused by some strange #ifdef structure
around HAVE_IPINFO in report.c.  Cleaned up that structure
so 'indent' can be used successfully.

ui/report.c

index 4e85c8fc3ff26dba3636f44bbf9aeedb951d427b..2e8ba2201468e99f3fa40436c10e212e865dfb07 100644 (file)
@@ -185,7 +185,7 @@ void report_close(struct mtr_ctl *ctl)
           printf("     %s%s\n", fmt_ipinfo(ctl, addr2), name);
           if (ctl->enablempls)
             print_mpls(mplss);
-        } else {
+        }
 #else
         int k;
         if (mpls->labels && z == 1 && ctl->enablempls) {
@@ -205,9 +205,6 @@ void report_close(struct mtr_ctl *ctl)
             printf("    |   +-- [MPLS: Lbl %lu Exp %u S %u TTL %u]\n", mplss->label[k], mplss->exp[k], mplss->s[k], mplss->ttl[k]);
           }
         }
-#endif
-#ifdef HAVE_IPINFO
-        }
 #endif
       }
     }
@@ -217,7 +214,7 @@ void report_close(struct mtr_ctl *ctl)
     if (is_printii(ctl)) {
       if (mpls->labels && z == 1 && ctl->enablempls)
         print_mpls(mpls);
-    } else {
+    }
 #else
     if(mpls->labels && z == 1 && ctl->enablempls) {
       int k;
@@ -225,9 +222,6 @@ void report_close(struct mtr_ctl *ctl)
         printf("    |   +-- [MPLS: Lbl %lu Exp %u S %u TTL %u]\n", mpls->label[k], mpls->exp[k], mpls->s[k], mpls->ttl[k]);
       }
     }
-#endif
-#ifdef HAVE_IPINFO
-    }
 #endif
   }
 }