diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-21 19:28:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-21 19:28:51 +0000 |
commit | 31bef4901b063dbf32bf6ba9c6e7419e5c3459b8 (patch) | |
tree | 27b92e558e963c40a7b3c342acf7ef18829840ac /src/modules | |
parent | 1689f51f7954d066df84db18d1d87eeeefc58694 (diff) |
In this module we declare the md5 context as a class, then reference it in functions as struct MD5Context*.
Not only does this make little sense readability wise, it triggers a warning in vs8. Fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7100 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_md5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index 43afbc15c..ada92df81 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -64,7 +64,7 @@ class ModuleMD5 : public Module } while (--words); } - void MD5Init(struct MD5Context *ctx, unsigned int* key = NULL) + void MD5Init(MD5Context *ctx, unsigned int* key = NULL) { /* These are the defaults for md5 */ if (!key) @@ -86,7 +86,7 @@ class ModuleMD5 : public Module ctx->bytes[1] = 0; } - void MD5Update(struct MD5Context *ctx, byte const *buf, int len) + void MD5Update(MD5Context *ctx, byte const *buf, int len) { word32 t; @@ -123,7 +123,7 @@ class ModuleMD5 : public Module memcpy(ctx->in, buf, len); } - void MD5Final(byte digest[16], struct MD5Context *ctx) + void MD5Final(byte digest[16], MD5Context *ctx) { int count = (int)(ctx->bytes[0] & 0x3f); /* Bytes in ctx->in */ byte *p = (byte *)ctx->in + count; /* First unused byte */ |