diff options
-rw-r--r-- | builtin/submodule--helper.c | 2 | ||||
-rw-r--r-- | run-command.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index dbe5699fe6..b0ca2a548f 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -781,7 +781,7 @@ static int update_clone_task_finished(int result, const struct cache_entry *ce; struct submodule_update_clone *suc = suc_cb; - int *idxP = *(int**)idx_task_cb; + int *idxP = idx_task_cb; int idx = *idxP; free(idxP); diff --git a/run-command.c b/run-command.c index 5a4dbb66d7..038d0e837c 100644 --- a/run-command.c +++ b/run-command.c @@ -1184,7 +1184,7 @@ static int pp_start_one(struct parallel_processes *pp) if (start_command(&pp->children[i].process)) { code = pp->start_failure(&pp->children[i].err, pp->data, - &pp->children[i].data); + pp->children[i].data); strbuf_addbuf(&pp->buffered_output, &pp->children[i].err); strbuf_reset(&pp->children[i].err); if (code) @@ -1252,7 +1252,7 @@ static int pp_collect_finished(struct parallel_processes *pp) code = pp->task_finished(code, &pp->children[i].err, pp->data, - &pp->children[i].data); + pp->children[i].data); if (code) result = code; |