From: Daan De Meyer Date: Wed, 14 May 2025 15:14:35 +0000 (+0200) Subject: hashmap: Make sure Iterator struct is named X-Git-Tag: v258-rc1~617^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f7b80b4e543edd045785a5510ae480baeed84f8;p=thirdparty%2Fsystemd.git hashmap: Make sure Iterator struct is named Otherwise we can't forward declare it. Split out of #37344 --- diff --git a/src/basic/hashmap.h b/src/basic/hashmap.h index f7e02c814e7..4aa8fbb0038 100644 --- a/src/basic/hashmap.h +++ b/src/basic/hashmap.h @@ -38,7 +38,7 @@ typedef struct IteratedCache IteratedCache; /* Caches the iterated order of on /* Ideally the Iterator would be an opaque struct, but it is instantiated * by hashmap users, so the definition has to be here. Do not use its fields * directly. */ -typedef struct { +typedef struct Iterator { const void *next_key; /* expected value of that entry's key pointer */ unsigned idx; /* index of an entry to be iterated next */ #if ENABLE_DEBUG_HASHMAP