diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 14:44:55 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 14:45:18 +0200 |
commit | 113ed15b7ecae4a3523454344f9b3438ea97fdc7 (patch) | |
tree | 288c7f9e0ad328fb780a7a0c2ce0631b5bccb181 /print-ldp.c | |
parent | 2e99bc485ab304df2d4c797af9576ad1b167c0f8 (diff) | |
download | tcpdump-113ed15b7ecae4a3523454344f9b3438ea97fdc7.tar.gz |
Put "}" at beginning of line with "else" to keep a consistent style
[skip ci]
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/print-ldp.c b/print-ldp.c index a62d22ba..0e0194a9 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -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: |