common-main: call git_extract_argv0_path()
[gitweb.git] / test-run-command.c
index fbe0a27ef3295fe3312fb72a478571bfb450cb25..c71ea4f759bf15253841bda5dd95f0783d0f7ad6 100644 (file)
@@ -41,7 +41,6 @@ static int no_job(struct child_process *cp,
 }
 
 static int task_finished(int result,
-                        struct child_process *cp,
                         struct strbuf *err,
                         void *pp_cb,
                         void *pp_task_cb)
@@ -50,7 +49,7 @@ static int task_finished(int result,
        return 1;
 }
 
-int main(int argc, char **argv)
+int cmd_main(int argc, const char **argv)
 {
        struct child_process proc = CHILD_PROCESS_INIT;
        int jobs;