]> andersk Git - moira.git/blobdiff - lib/hash.c
Fix another freeing-memory-we-didn't-malloc bug in AddMachine. This
[moira.git] / lib / hash.c
index e34e289f0ece9464103987abf83d19fe7570427d..665925d4077759ed2b0db156b14c7714b8c6724f 100644 (file)
 #include <ctype.h>
 #include <moira.h>
 #include <string.h>
+#include <stdlib.h>
 
-extern char *malloc();
-
+#ifndef NULL
 #define NULL 0
+#endif
 #define hash_func(h, key) (key >= 0 ? (key % h->size) : (-key % h->size))
 
 /* Create a hash table.  The size is just a hint, not a maximum. */
This page took 0.037768 seconds and 4 git commands to generate.