]> jfr.im git - irc/quakenet/newserv.git/blobdiff - authext/authext.c
Merge chanserv-live into default.
[irc/quakenet/newserv.git] / authext / authext.c
index 11b1a58787176b8e2631da6408938edced5be56a..7606832d9c9a8aabbe9dbb5981feb3847179a24f 100644 (file)
@@ -7,14 +7,18 @@
 #include "../core/hooks.h"
 #include "../lib/strlfunc.h"
 #include "../lib/version.h"
+#include "../lib/ccassert.h"
 
 #include <string.h>
 #include <stdio.h>
 
 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];