summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/network/clone.c2
-rw-r--r--examples/network/common.h2
-rw-r--r--examples/network/git2.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c
index b7ac0fbe5..fb571bd3a 100644
--- a/examples/network/clone.c
+++ b/examples/network/clone.c
@@ -32,7 +32,7 @@ static void *clone_thread(void *ptr)
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};
pthread_t worker;
diff --git a/examples/network/common.h b/examples/network/common.h
index d4b63e77c..c82eaa1c8 100644
--- a/examples/network/common.h
+++ b/examples/network/common.h
@@ -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 fetch(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__ */
diff --git a/examples/network/git2.c b/examples/network/git2.c
index 21c8ec9b0..9f0f43e2c 100644
--- a/examples/network/git2.c
+++ b/examples/network/git2.c
@@ -12,7 +12,7 @@ struct {
} commands[] = {
{"ls-remote", ls_remote},
{"fetch", fetch},
- {"clone", clone},
+ {"clone", do_clone},
{"index-pack", index_pack},
{ NULL, NULL}
};