]> andersk Git - moira.git/blobdiff - lib/hash.c
Initial revision
[moira.git] / lib / hash.c
index 2a41cd2e826fe1f964967767a92bda0820b8ad43..e34e289f0ece9464103987abf83d19fe7570427d 100644 (file)
@@ -10,6 +10,9 @@
 #include <mit-copyright.h>
 #include <ctype.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.054916 seconds and 4 git commands to generate.