]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put "{" at end of line with "else" to keep a consistent style
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 21 Apr 2023 12:24:23 +0000 (14:24 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 21 Apr 2023 12:24:23 +0000 (14:24 +0200)
[skip ci]

print-frag6.c
print-olsr.c
print-radius.c

index 16e8a4b21926b993f7e1c811dd2ff477695dae87..0ac2fd7f4430d8bd966a6410ce33b8b3c380b653 100644 (file)
@@ -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);
        }
index fabadfb97d0a77f1245200741427451f1cbe7778..1b0345fc682ec083e6bf63203e3028d01add1a7d 100644 (file)
@@ -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)",
index b84021a796c10b11cb938552734c5fdee61abd76..1d3ddd60e84115aebd79955658961e9f3b57b9f2 100644 (file)
@@ -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);