X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/ee32f5f1f91dbf80d46fb6e0f9e802ab6b58ffaf..3e1b768066a16c4b899b9cbdd7911be883151a05:/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];