diff options
| author | Ben Straub <bstraub@github.com> | 2012-07-31 08:51:38 -0700 |
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-07-31 08:51:38 -0700 |
| commit | 383fb799ee66b2b50ba80ad1c3cc858cbfd783b7 (patch) | |
| tree | ee66d706904347b4dead5bce06cf4f272bcfd317 /examples | |
| parent | 7e02c7c56ac2a3dc8fce199b7b05a0bf51fa2417 (diff) | |
| download | libgit2-383fb799ee66b2b50ba80ad1c3cc858cbfd783b7.tar.gz | |
Rename example function to avoid name collision.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/network/clone.c | 2 | ||||
| -rw-r--r-- | examples/network/common.h | 2 | ||||
| -rw-r--r-- | examples/network/git2.c | 2 |
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} }; |
