]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Put "}" at beginning of line with "else" to keep a consistent style
[tcpdump] / print-ldp.c
index a62d22ba95a60a08f30b946d5ecaf038e635567a..0e0194a933867cb93ed5c33b72e72ec471623f36 100644 (file)
@@ -364,8 +364,7 @@ ldp_tlv_print(netdissect_options *ndo,
                    ND_PRINT(": IPv4 prefix (invalid length)");
                else
                    ND_PRINT(": IPv4 prefix %s", buf);
-           }
-           else if (af == AFNUM_IP6) {
+           } else if (af == AFNUM_IP6) {
                i=decode_prefix6(ndo, tptr, tlv_tlen, buf, sizeof(buf));
                if (i == -2)
                    goto trunc;
@@ -375,8 +374,7 @@ ldp_tlv_print(netdissect_options *ndo,
                    ND_PRINT(": IPv6 prefix (invalid length)");
                else
                    ND_PRINT(": IPv6 prefix %s", buf);
-           }
-           else
+           } else
                ND_PRINT(": Address family %u prefix", af);
            break;
        case LDP_FEC_HOSTADDRESS: