summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 08:34:46 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 08:34:46 +0000
commit1661e2aaa919e33b39b3b25e771840845e4180dd (patch)
tree83d3eec7c9f68a0d05af24c231f4a316f71264b7 /src/modules
parent090e7863df54f91ab206141ef5ef9395afcbd752 (diff)
More stylistic changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2030 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 73b09b423..44a03a39b 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -64,7 +64,8 @@ class ModuleCloaking : public Module
{
byte *p = (byte *)buf;
- do {
+ do
+ {
*buf++ = (word32)((unsigned)p[3] << 8 | p[2]) << 16 |
((unsigned)p[1] << 8 | p[0]);
p += 4;
@@ -93,7 +94,8 @@ class ModuleCloaking : public Module
ctx->bytes[1]++; /* Carry from low to high */
t = 64 - (t & 0x3f); /* Space available in ctx->in (at least 1) */
- if ((unsigned)t > (unsigned)len) {
+ if ((unsigned)t > (unsigned)len)
+ {
memcpy((byte *)ctx->in + 64 - (unsigned)t, buf, len);
return;
}
@@ -105,7 +107,8 @@ class ModuleCloaking : public Module
len -= (unsigned)t;
/* Process data in 64-byte chunks */
- while (len >= 64) {
+ while (len >= 64)
+ {
memcpy(ctx->in, buf, 64);
byteSwap(ctx->in, 16);
xMD5Transform(ctx->buf, ctx->in);
@@ -128,7 +131,8 @@ class ModuleCloaking : public Module
/* Bytes of padding needed to make 56 bytes (-8..55) */
count = 56 - 1 - count;
- if (count < 0) { /* Padding forces an extra block */
+ if (count < 0)
+ { /* Padding forces an extra block */
memset(p, 0, count+8);
byteSwap(ctx->in, 16);
xMD5Transform(ctx->buf, ctx->in);