convert/sub-process: drop cast to hashmap_cmp_fn
[gitweb.git] / sub-process.c
index 92f8aea70aa0bc7654b89bebc3e72b197953e84a..6cbffa44064f6e2040be496ad509a57db648e554 100644 (file)
@@ -5,10 +5,14 @@
 #include "sigchain.h"
 #include "pkt-line.h"
 
-int cmd2process_cmp(const struct subprocess_entry *e1,
-                          const struct subprocess_entry *e2,
-                          const void *unused)
+int cmd2process_cmp(const void *unused_cmp_data,
+                   const void *entry,
+                   const void *entry_or_key,
+                   const void *unused_keydata)
 {
+       const struct subprocess_entry *e1 = entry;
+       const struct subprocess_entry *e2 = entry_or_key;
+
        return strcmp(e1->cmd, e2->cmd);
 }