]> git.ipfire.org Git - thirdparty/git.git/blobdiff - name-hash.c
OFFSETOF_VAR macro to simplify hashmap iterators
[thirdparty/git.git] / name-hash.c
index c86fe0f1df0b95c125eecc580ee47a0788bd9632..3cda22b657619d974d2d2d70db211ee3607189fc 100644 (file)
@@ -714,8 +714,7 @@ struct cache_entry *index_file_exists(struct index_state *istate, const char *na
 
        ce = hashmap_get_entry_from_hash(&istate->name_hash, hash, NULL,
                                         struct cache_entry, ent);
-       hashmap_for_each_entry_from(&istate->name_hash, ce,
-                                       struct cache_entry, ent) {
+       hashmap_for_each_entry_from(&istate->name_hash, ce, ent) {
                if (same_name(ce, name, namelen, icase))
                        return ce;
        }