diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
commit | 20b85c03e751b4876fa3c92040464e483172b746 (patch) | |
tree | 734fadbfdbc143ec4465093857f4c239448715e0 /src/tcpto.c | |
parent | a6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff) |
manual format adjustment
Diffstat (limited to 'src/tcpto.c')
-rw-r--r-- | src/tcpto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tcpto.c b/src/tcpto.c index 77e565c..243d4ba 100644 --- a/src/tcpto.c +++ b/src/tcpto.c @@ -103,9 +103,9 @@ void tcpto_err(struct ip_mx *ix, int flagerr) for (i = 0; i < n; ++i) { if (af == record[0] && byte_equal(ip->d, af == AF_INET ? 4 : 16, record + 16)) { - if (!flagerr) + if (!flagerr) { record[4] = 0; - else { + } else { lastwhen = (unsigned long)(unsigned char)record[11]; lastwhen = (lastwhen << 8) + (unsigned long)(unsigned char)record[10]; lastwhen = (lastwhen << 8) + (unsigned long)(unsigned char)record[9]; @@ -169,9 +169,9 @@ void tcpto_err(struct ip_mx *ix, int flagerr) if (i >= 0) { record = tcpto_buf + (i << 5); record[0] = af; - if (af == AF_INET6) + if (af == AF_INET6) { byte_copy(record + 16, 16, ip->d); - else { + } else { byte_copy(record + 16, 4, ip->d); byte_copy(record + 20, 12, "............"); } |