]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/describe.c
OFFSETOF_VAR macro to simplify hashmap iterators
[thirdparty/git.git] / builtin / describe.c
index 8cf2cd992d3b2367b73ed22eb9a6d6fd6a347dce..1caf98f71640dd235f122dee969063fcc0bc5d2e 100644 (file)
@@ -333,7 +333,7 @@ static void describe_commit(struct object_id *oid, struct strbuf *dst)
                struct commit_name *n;
 
                init_commit_names(&commit_names);
-               hashmap_for_each_entry(&names, &iter, n, struct commit_name,
+               hashmap_for_each_entry(&names, &iter, n,
                                        entry /* member name */) {
                        c = lookup_commit_reference_gently(the_repository,
                                                           &n->peeled, 1);