]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/helper/test-hashmap.c
hashmap_get_next takes "const struct hashmap_entry *"
[thirdparty/git.git] / t / helper / test-hashmap.c
index 0c9fd7c9962c0b3d103e85f4cdf02387fc8f3cbc..bf063a2521c166ce3c691cf73b39852309465bfa 100644 (file)
@@ -203,7 +203,7 @@ int cmd__hashmap(int argc, const char **argv)
                                puts("NULL");
                        while (entry) {
                                puts(get_value(entry));
-                               entry = hashmap_get_next(&map, entry);
+                               entry = hashmap_get_next(&map, &entry->ent);
                        }
 
                } else if (!strcmp("remove", cmd) && p1) {