]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put "{" at end of line with "while" to keep a consistent style
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 19 Apr 2023 19:03:49 +0000 (21:03 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 20 Apr 2023 07:12:07 +0000 (09:12 +0200)
[skip ci]

(cherry picked from commit dc2c85188fd4d2113b0ae694e2917ced6b7665cc)

print-icmp6.c
print-isoclns.c
print-radius.c

index 4738e77a9e75a12f81051dee588fe9f2d46d2d71..3aa9a1683703a30fdbe4b8c1a0bd3d2519a09d5b 100644 (file)
@@ -1475,8 +1475,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;
index ddd559532abd3bae10bfb7681326a01df0b63055..cf348290908535e97faeb331b6eb90054c9ddaeb 100644 (file)
@@ -1487,8 +1487,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);
 
@@ -1566,8 +1565,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",
@@ -1619,8 +1617,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;
@@ -1667,8 +1664,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;
 
index 57d7e507e34518eefcae0b553b06438f03376069..414a15b5cbb56baac7ec252049534d10cfad631e 100644 (file)
@@ -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);