X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fhashmap.c;h=48d75023918afadc54df0bf7597a9d38d79f485f;hb=8de00a217253eb9a249eec5210177e6d2bdb0557;hp=f2a8a77eae0a8d5b905bdc59343c885be6eb94a9;hpb=fc86aa0ed204922dcafa85353cb10e1aa7d91a76;p=elogind.git
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c
index f2a8a77ea..48d750239 100644
--- a/src/shared/hashmap.c
+++ b/src/shared/hashmap.c
@@ -20,9 +20,7 @@
along with systemd; If not, see .
***/
-#include
#include
-#include
#include
#include "util.h"
@@ -31,9 +29,12 @@
#include "macro.h"
#include "siphash24.h"
#include "strv.h"
-#include "list.h"
#include "mempool.h"
+#ifdef ENABLE_DEBUG_HASHMAP
+#include "list.h"
+#endif
+
/*
* Implementation of hashmaps.
* Addressing: open
@@ -1066,7 +1067,7 @@ static int hashmap_base_put_boldly(HashmapBase *h, unsigned idx,
/*
* Returns 0 if resize is not needed.
- * 1 if succesfully resized.
+ * 1 if successfully resized.
* -ENOMEM on allocation failure.
*/
static int resize_buckets(HashmapBase *h, unsigned entries_add) {