]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-rename.c
hashmap_get_next takes "const struct hashmap_entry *"
[thirdparty/git.git] / diffcore-rename.c
index 9624864858dcb4e99d793858c3fe4885d18134e3..2a1449013bf58a2e64ef4abc261baf39220f4c07 100644 (file)
@@ -285,7 +285,7 @@ static int find_identical_files(struct hashmap *srcs,
        p = hashmap_get_from_hash(srcs,
                                  hash_filespec(options->repo, target),
                                  NULL);
-       for (; p; p = hashmap_get_next(srcs, p)) {
+       for (; p; p = hashmap_get_next(srcs, &p->entry)) {
                int score;
                struct diff_filespec *source = p->filespec;
 
@@ -329,7 +329,7 @@ static void insert_file_table(struct repository *r,
        entry->index = index;
        entry->filespec = filespec;
 
-       hashmap_entry_init(entry, hash_filespec(r, filespec));
+       hashmap_entry_init(&entry->entry, hash_filespec(r, filespec));
        hashmap_add(table, entry);
 }