X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/67ce52b91098ccf1acf255142544e9f7826e965d..0d6366b6a61a69b26dc0cde44eb85e3293c6659d:/authext/authext.c diff --git a/authext/authext.c b/authext/authext.c index 11b1a587..7606832d 100644 --- a/authext/authext.c +++ b/authext/authext.c @@ -7,14 +7,18 @@ #include "../core/hooks.h" #include "../lib/strlfunc.h" #include "../lib/version.h" +#include "../lib/ccassert.h" #include #include MODULE_VERSION("") +/* checking to see that u_int64_t == unsigned long long for strtoull */ +CCASSERT(sizeof(unsigned long long) == sizeof(u_int64_t)) + #define authnamehash(x) ((x)%AUTHNAMEHASHSIZE) -#define authnamehashbyname(x) (crc32i(x)%AUTHNAMEHASHSIZE) +#define authnamehashbyname(x) (irc_crc32i(x)%AUTHNAMEHASHSIZE) authname *authnametable[AUTHNAMEHASHSIZE];