summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-19 21:06:12 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-19 22:03:07 +0200
commita2b58786ae60da107986295bd5e254154d4971ea (patch)
treefa9b0489d8367d3fd8ffa977a60ba2fa8ae17f89
parentdc2c85188fd4d2113b0ae694e2917ced6b7665cc (diff)
downloadtcpdump-a2b58786ae60da107986295bd5e254154d4971ea.tar.gz
Put "{" at end of line with "for" to keep a consistent style
[skip ci]
-rw-r--r--addrtostr.c6
-rw-r--r--checksum.c3
-rw-r--r--print-isoclns.c3
3 files changed, 4 insertions, 8 deletions
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 ");