]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/hashmap.h
hashmap: reorder fields to pack structure better
[thirdparty/systemd.git] / src / basic / hashmap.h
index 28929843c89a3604293c0b60556c8fe713b44674..49d9d118cc373bb0bcf844090a74d5dcda10493e 100644 (file)
@@ -39,8 +39,8 @@ typedef struct IteratedCache IteratedCache;   /* Caches the iterated order of on
  * by hashmap users, so the definition has to be here. Do not use its fields
  * directly. */
 typedef struct {
-        unsigned idx;         /* index of an entry to be iterated next */
         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
         unsigned put_count;   /* hashmap's put_count recorded at start of iteration */
         unsigned rem_count;   /* hashmap's rem_count in previous iteration */