From: Francois-Xavier Le Bail Date: Wed, 19 Apr 2023 19:06:12 +0000 (+0200) Subject: Put "{" at end of line with "for" to keep a consistent style X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a2b58786ae60da107986295bd5e254154d4971ea Put "{" at end of line with "for" to keep a consistent style [skip ci] --- diff --git a/addrtostr.c b/addrtostr.c index c3bdb8af..f898c04f 100644 --- a/addrtostr.c +++ b/addrtostr.c @@ -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)) diff --git a/checksum.c b/checksum.c index c5025082..d8fa944a 100644 --- a/checksum.c +++ b/checksum.c @@ -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++; diff --git a/print-isoclns.c b/print-isoclns.c index f626bddb..a27f1c6d 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -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 ");