]> 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]>
Wed, 19 Apr 2023 20:03:07 +0000 (22:03 +0200)
[skip ci]

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;
-  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++)
-  {
+  for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
     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--; \
     }
-  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))
index c5025082975322671ddb80f758fda344fa0054b1..d8fa944acfe7680ccc37385802571287944ee77f 100644 (file)
@@ -91,8 +91,7 @@ verify_crc10_cksum(uint16_t accum, const u_char *p, int length)
 {
     int i;
 
-    for ( i = 0;  i < length;  i++ )
-    {
+    for ( i = 0;  i < length;  i++ ) {
         accum = ((accum << 8) & 0x3ff)
             ^ crc10_table[( accum >> 2) & 0xff]
             ^ *p++;
index f626bddbf169562a41fd901b8a2b66289ddec79b..a27f1c6d4b42ba83c6be09efe923b713133e2881 100644 (file)
@@ -1550,8 +1550,7 @@ isis_print_mt_port_cap_subtlv(netdissect_options *ndo,
 
         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                 ");