From: Francois-Xavier Le Bail Date: Wed, 19 Apr 2023 19:03:49 +0000 (+0200) Subject: Put "{" at end of line with "while" to keep a consistent style X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/dc2c85188fd4d2113b0ae694e2917ced6b7665cc Put "{" at end of line with "while" to keep a consistent style [skip ci] --- diff --git a/print-icmp6.c b/print-icmp6.c index a45974da..d642f831 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -1457,8 +1457,7 @@ icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid) ND_PRINT(" lifetime %us, domain(s):", GET_BE_U_4(opds->nd_opt_dnssl_lifetime)); domp = cp + 8; /* domain names, variable-sized, RFC1035-encoded */ - while (domp < cp + (opt_len << 3) && GET_U_1(domp) != '\0') - { + while (domp < cp + (opt_len << 3) && GET_U_1(domp) != '\0') { ND_PRINT(" "); if ((domp = fqdn_print(ndo, domp, bp)) == NULL) goto trunc; diff --git a/print-isoclns.c b/print-isoclns.c index cc3c363b..f626bddb 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1488,8 +1488,7 @@ isis_print_mt_port_cap_subtlv(netdissect_options *ndo, const struct isis_subtlv_spb_mcid *subtlv_spb_mcid; int i; - while (len > 2) - { + while (len > 2) { stlv_type = GET_U_1(tptr); stlv_len = GET_U_1(tptr + 1); @@ -1567,8 +1566,7 @@ isis_print_mt_port_cap_subtlv(netdissect_options *ndo, case ISIS_SUBTLV_SPB_BVID: { - while (stlv_len != 0) - { + while (stlv_len != 0) { if (stlv_len < 4) goto subtlv_too_short; ND_PRINT("\n\t ECT: %08x", @@ -1620,8 +1618,7 @@ isis_print_mt_capability_subtlv(netdissect_options *ndo, { u_int stlv_type, stlv_len, treecount; - while (len > 2) - { + while (len > 2) { stlv_type = GET_U_1(tptr); stlv_len = GET_U_1(tptr + 1); tptr += 2; @@ -1668,8 +1665,7 @@ isis_print_mt_capability_subtlv(netdissect_options *ndo, len -= ISIS_SUBTLV_SPB_INSTANCE_MIN_LEN; stlv_len -= ISIS_SUBTLV_SPB_INSTANCE_MIN_LEN; - while (treecount) - { + while (treecount) { if (stlv_len < ISIS_SUBTLV_SPB_INSTANCE_VLAN_TUPLE_LEN) goto trunc; diff --git a/print-radius.c b/print-radius.c index 658bb532..158c3a6e 100644 --- a/print-radius.c +++ b/print-radius.c @@ -1403,8 +1403,7 @@ radius_attrs_print(netdissect_options *ndo, const char *attr_string; uint8_t type, len; - while (length > 0) - { + while (length > 0) { if (length < 2) goto trunc; ND_TCHECK_SIZE(rad_attr);