summaryrefslogtreecommitdiffstats
path: root/sub-process.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-07-01 02:28:33 +0200
committerJunio C Hamano <gitster@pobox.com>2017-07-05 22:53:12 +0200
commit9ab42958f6c103fc75fcf2598ccb18e2c493c0fb (patch)
tree5638786061d73ae9d9edfbc2974927eca447f1df /sub-process.c
parentconfig.c: drop hashmap_cmp_fn cast (diff)
downloadgit-9ab42958f6c103fc75fcf2598ccb18e2c493c0fb.tar.xz
git-9ab42958f6c103fc75fcf2598ccb18e2c493c0fb.zip
convert/sub-process: drop cast to hashmap_cmp_fn
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sub-process.c')
-rw-r--r--sub-process.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sub-process.c b/sub-process.c
index a3cfab1a9d..6cbffa4406 100644
--- a/sub-process.c
+++ b/sub-process.c
@@ -6,10 +6,13 @@
#include "pkt-line.h"
int cmd2process_cmp(const void *unused_cmp_data,
- const struct subprocess_entry *e1,
- const struct subprocess_entry *e2,
+ 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);
}