Commit 383fb799 by Ben Straub

Rename example function to avoid name collision.

parent 7e02c7c5
...@@ -32,7 +32,7 @@ static void *clone_thread(void *ptr) ...@@ -32,7 +32,7 @@ static void *clone_thread(void *ptr)
pthread_exit(&data->ret); pthread_exit(&data->ret);
} }
int clone(git_repository *repo, int argc, char **argv) int do_clone(git_repository *repo, int argc, char **argv)
{ {
struct dl_data data = {0}; struct dl_data data = {0};
pthread_t worker; pthread_t worker;
......
...@@ -10,6 +10,6 @@ int parse_pkt_line(git_repository *repo, int argc, char **argv); ...@@ -10,6 +10,6 @@ int parse_pkt_line(git_repository *repo, int argc, char **argv);
int show_remote(git_repository *repo, int argc, char **argv); int show_remote(git_repository *repo, int argc, char **argv);
int fetch(git_repository *repo, int argc, char **argv); int fetch(git_repository *repo, int argc, char **argv);
int index_pack(git_repository *repo, int argc, char **argv); int index_pack(git_repository *repo, int argc, char **argv);
int clone(git_repository *repo, int argc, char **argv); int do_clone(git_repository *repo, int argc, char **argv);
#endif /* __COMMON_H__ */ #endif /* __COMMON_H__ */
...@@ -12,7 +12,7 @@ struct { ...@@ -12,7 +12,7 @@ struct {
} commands[] = { } commands[] = {
{"ls-remote", ls_remote}, {"ls-remote", ls_remote},
{"fetch", fetch}, {"fetch", fetch},
{"clone", clone}, {"clone", do_clone},
{"index-pack", index_pack}, {"index-pack", index_pack},
{ NULL, NULL} { NULL, NULL}
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment