]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule-config.c
hashmap_get takes "const struct hashmap_entry *"
[thirdparty/git.git] / submodule-config.c
index a3bbd9fd6f9e180eaec16e3df227ea13b3c21eeb..58d585cd7d9cd5482f4134a08e0e146c4d4ec19b 100644 (file)
@@ -166,7 +166,7 @@ static const struct submodule *cache_lookup_path(struct submodule_cache *cache,
        hashmap_entry_init(&key.ent, hash);
        key.config = &key_config;
 
-       entry = hashmap_get(&cache->for_path, &key, NULL);
+       entry = hashmap_get(&cache->for_path, &key.ent, NULL);
        if (entry)
                return entry->config;
        return NULL;
@@ -186,7 +186,7 @@ static struct submodule *cache_lookup_name(struct submodule_cache *cache,
        hashmap_entry_init(&key.ent, hash);
        key.config = &key_config;
 
-       entry = hashmap_get(&cache->for_name, &key, NULL);
+       entry = hashmap_get(&cache->for_name, &key.ent, NULL);
        if (entry)
                return entry->config;
        return NULL;