summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-19 21:03:49 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-19 22:02:54 +0200
commitdc2c85188fd4d2113b0ae694e2917ced6b7665cc (patch)
tree5f295ea1e218c4b18edc062e809f7c7c31782ac8
parentdf5cba8d99ed9b99ecf1da9e4e0a115509209a91 (diff)
downloadtcpdump-dc2c85188fd4d2113b0ae694e2917ced6b7665cc.tar.gz
Put "{" at end of line with "while" to keep a consistent style
[skip ci]
-rw-r--r--print-icmp6.c3
-rw-r--r--print-isoclns.c12
-rw-r--r--print-radius.c3
3 files changed, 6 insertions, 12 deletions
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);