summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-21 14:44:55 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-21 15:17:22 +0200
commit3018f3698b1463d4577ea8b412f079f4381b7605 (patch)
treea4bda8e5964715ab6806cddff75da97f15395108 /print-ldp.c
parente4ecc39f4ebb05aa2fb8293aaa71ffbe0a340ff1 (diff)
downloadtcpdump-4.99.tar.gz
Put "}" at beginning of line with "else" to keep a consistent styletcpdump-4.99
(backported from commit 113ed15b7ecae4a3523454344f9b3438ea97fdc7) [skip ci]
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/print-ldp.c b/print-ldp.c
index 896bc403..452b5f1f 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_INET6) {
+ } else if (af == AFNUM_INET6) {
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: