summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-15 17:56:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-15 17:56:15 +0000
commit92c8a84fa43a0c28a2f313f17cabacedc4886b25 (patch)
treeb052a8b18bf94483a668bc55efc65d297e5ca2d6 /src/modules
parentd94a547367e7dbd8c31a75b4992a24e681f42433 (diff)
Change to stdint
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4012 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 302c56dfa..21e275c1e 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -33,6 +33,7 @@ using namespace std;
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <stdint.h>
#include "users.h"
#include "channels.h"
#include "modules.h"
@@ -48,7 +49,7 @@ using namespace std;
#define F4(x, y, z) (y ^ (x | ~z))
#define MD5STEP(f,w,x,y,z,in,s) (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x)
-typedef unsigned int word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
+typedef uint32_t word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
typedef unsigned char byte;
struct xMD5Context {
@@ -63,10 +64,10 @@ class ModuleCloaking : public Module
Server *Srv;
std::string prefix;
- int key1;
- int key2;
- int key3;
- int key4;
+ word32 key1;
+ word32 key2;
+ word32 key3;
+ word32 key4;
void byteSwap(word32 *buf, unsigned words)
{