]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/hash.c
Fix spelling
[ngircd-alex.git] / src / ngircd / hash.c
index 7b7976c9a330ac29e63135215ba96429e4f02505..3c600384b6b2f034a2d3f3455ad07a20e21d639e 100644 (file)
@@ -37,7 +37,7 @@ static UINT32 jenkins_hash PARAMS((UINT8 *k, UINT32 length, UINT32 initval));
 GLOBAL UINT32
 Hash( const char *String )
 {
-       char buffer[LINE_LEN];
+       char buffer[COMMAND_LEN];
 
        strlcpy(buffer, String, sizeof(buffer));
        return jenkins_hash((UINT8 *)ngt_LowerStr(buffer),
@@ -58,7 +58,7 @@ Hash( const char *String )
  * Not all of his functions are used here.
  */
 
-#define hashsize(n) ((uint32_t)1<<(n))
+#define hashsize(n) ((UINT32)1<<(n))
 #define hashmask(n) (hashsize(n)-1)
 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))