]> arthur.barton.de Git - netdata.git/blobdiff - src/dictionary.c
build: migrate to autotools
[netdata.git] / src / dictionary.c
index afd833c6ab4763074ae220a4cda715cb8ad62a13..e0c38a680167b0fb9ba991172865fc198cdacc46 100755 (executable)
@@ -1,7 +1,9 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <pthread.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
 
 #include "avl.h"
 #include "common.h"
@@ -23,7 +25,7 @@ static int name_value_compare(void* a, void* b) {
 #define name_value_index_add(dict, cv) avl_insert(&((dict)->values_index), (avl *)(cv))
 #define name_value_index_del(dict, cv) avl_remove(&((dict)->values_index), (avl *)(cv))
 
-static NAME_VALUE *dictionary_name_value_index_find(DICTIONARY *dict, const char *name, unsigned long hash) {
+static NAME_VALUE *dictionary_name_value_index_find(DICTIONARY *dict, const char *name, uint32_t hash) {
        NAME_VALUE *result = NULL, tmp;
        tmp.hash = (hash)?hash:simple_hash(name);
        tmp.name = (char *)name;