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

(cherry picked from commit a2b58786ae60da107986295bd5e254154d4971ea)

addrtostr.c
checksum.c
print-isoclns.c

index c3bdb8af342cb9585d5ce7cbccab29f7b04920fb..f898c04fb413a9a0e9a190c2323de7a9982c6e57 100644 (file)
@@ -127,8 +127,7 @@ addrtostr6 (const void *src, char *dst, size_t size)
   best.base = -1;
   cur.len = 0;
   cur.base  = -1;
   best.base = -1;
   cur.len = 0;
   cur.base  = -1;
-  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++)
-  {
+  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
     if (words[i] == 0)
     {
       if (cur.base == -1)
     if (words[i] == 0)
     {
       if (cur.base == -1)
@@ -160,8 +159,7 @@ addrtostr6 (const void *src, char *dst, size_t size)
         *dp++ = c; \
         space_left--; \
     }
         *dp++ = c; \
         space_left--; \
     }
-  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++)
-  {
+  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
     /* Are we inside the best run of 0x00's?
      */
     if (best.base != -1 && i >= best.base && i < (best.base + best.len))
     /* Are we inside the best run of 0x00's?
      */
     if (best.base != -1 && i >= best.base && i < (best.base + best.len))
index e6e84a2510db286d802cd5d061062455320eb30d..00ee8dd0aa2ae55eb38475994d7418ec714d4e0a 100644 (file)
@@ -114,8 +114,7 @@ verify_crc10_cksum(uint16_t accum, const u_char *p, int length)
 {
     int i;
 
 {
     int i;
 
-    for ( i = 0;  i < length;  i++ )
-    {
+    for ( i = 0;  i < length;  i++ ) {
         accum = ((accum << 8) & 0x3ff)
             ^ crc10_table[( accum >> 2) & 0xff]
             ^ *p++;
         accum = ((accum << 8) & 0x3ff)
             ^ crc10_table[( accum >> 2) & 0xff]
             ^ *p++;
index cf348290908535e97faeb331b6eb90054c9ddaeb..b1986b3f97d23508d3bd9553b378079bdb5f0395 100644 (file)
@@ -1549,8 +1549,7 @@ isis_print_mt_port_cap_subtlv(netdissect_options *ndo,
 
         ND_PRINT("\n\t         Digest: ");
 
 
         ND_PRINT("\n\t         Digest: ");
 
-        for(i=1;i<=8; i++)
-        {
+        for(i=1;i<=8; i++) {
             ND_PRINT("%08x ", GET_BE_U_4(tptr));
             if (i%4 == 0 && i != 8)
               ND_PRINT("\n\t                 ");
             ND_PRINT("%08x ", GET_BE_U_4(tptr));
             if (i%4 == 0 && i != 8)
               ND_PRINT("\n\t                 ");