]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sub-process.c
hashmap_entry_init takes "struct hashmap_entry *"
[thirdparty/git.git] / sub-process.c
index 3f4af935557c5ee22b0b1b9b43d2778161210765..9847dad6fca34fbb181f419456905b5fcc6323bd 100644 (file)
@@ -20,7 +20,7 @@ struct subprocess_entry *subprocess_find_entry(struct hashmap *hashmap, const ch
 {
        struct subprocess_entry key;
 
-       hashmap_entry_init(&key, strhash(cmd));
+       hashmap_entry_init(&key.ent, strhash(cmd));
        key.cmd = cmd;
        return hashmap_get(hashmap, &key, NULL);
 }
@@ -96,7 +96,7 @@ int subprocess_start(struct hashmap *hashmap, struct subprocess_entry *entry, co
                return err;
        }
 
-       hashmap_entry_init(entry, strhash(cmd));
+       hashmap_entry_init(&entry->ent, strhash(cmd));
 
        err = startfn(entry);
        if (err) {