]> andersk Git - moira.git/blobdiff - lib/hash.c
had to change the get alias validate thing to use the access hook
[moira.git] / lib / hash.c
index c6cef7eefbf2a047d24e0e83dbf26c07b80055e7..e34e289f0ece9464103987abf83d19fe7570427d 100644 (file)
@@ -9,7 +9,10 @@
 
 #include <mit-copyright.h>
 #include <ctype.h>
-#include <sms.h>
+#include <moira.h>
+#include <string.h>
+
+extern char *malloc();
 
 #define NULL 0
 #define hash_func(h, key) (key >= 0 ? (key % h->size) : (-key % h->size))
@@ -30,7 +33,7 @@ int size;
        free(h);
        return((struct hash *) NULL);
     }
-    bzero(h->data, size * sizeof(char *));
+    memset(h->data, 0, size * sizeof(char *));
     return(h);
 }
 
This page took 0.182516 seconds and 4 git commands to generate.