diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 14:24:23 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 14:24:23 +0200 |
commit | 2e99bc485ab304df2d4c797af9576ad1b167c0f8 (patch) | |
tree | f489ce3f3c9218665f79422508f41468ba6e5a0b | |
parent | ff4af2069a7d1f56cbcd4292e3d25ddb41a19b0b (diff) | |
download | tcpdump-2e99bc485ab304df2d4c797af9576ad1b167c0f8.tar.gz |
Put "{" at end of line with "else" to keep a consistent style
[skip ci]
-rw-r--r-- | print-frag6.c | 3 | ||||
-rw-r--r-- | print-olsr.c | 6 | ||||
-rw-r--r-- | print-radius.c | 9 |
3 files changed, 6 insertions, 12 deletions
diff --git a/print-frag6.c b/print-frag6.c index 16e8a4b2..0ac2fd7f 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -58,8 +58,7 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) /* it is meaningless to decode non-first fragment */ if ((GET_BE_U_2(dp->ip6f_offlg) & IP6F_OFF_MASK) != 0) return -1; - else - { + else { ND_PRINT(" "); return sizeof(struct ip6_frag); } diff --git a/print-olsr.c b/print-olsr.c index fabadfb9..1b0345fc 100644 --- a/print-olsr.c +++ b/print-olsr.c @@ -381,8 +381,7 @@ olsr_print(netdissect_options *ndo, msg_tlen = msg_len - sizeof(struct olsr_msg6); msg_data = tptr + sizeof(struct olsr_msg6); } - else /* (!is_ipv6) */ - { + else { /* (!is_ipv6) */ ND_TCHECK_LEN(tptr, sizeof(struct olsr_msg4)); msgptr.v4 = (const struct olsr_msg4 *) tptr; msg_type = GET_U_1(msgptr.v4->msg_type); @@ -537,8 +536,7 @@ olsr_print(netdissect_options *ndo, msg_tlen -= sizeof(struct olsr_hna6); } } - else - { + else { int col = 0; ND_PRINT("\n\t Advertised networks (total %u)", diff --git a/print-radius.c b/print-radius.c index b84021a7..1d3ddd60 100644 --- a/print-radius.c +++ b/print-radius.c @@ -917,8 +917,7 @@ print_attr_num(netdissect_options *ndo, data++; data_value = GET_BE_U_3(data); } - else - { + else { data_value = GET_BE_U_4(data); } if ( data_value <= (uint32_t)(attr_type[attr_code].siz_subtypes - 1 + @@ -928,8 +927,7 @@ print_attr_num(netdissect_options *ndo, else ND_PRINT("#%u", data_value); } - else - { + else { switch(attr_code) /* Be aware of special cases... */ { case FRM_IPX: @@ -947,8 +945,7 @@ print_attr_num(netdissect_options *ndo, timeout = GET_BE_U_4(data); if ( timeout < 60 ) ND_PRINT("%02d secs", timeout); - else - { + else { if ( timeout < 3600 ) ND_PRINT("%02d:%02d min", timeout / 60, timeout % 60); |