diff options
author | Ben Straub <bs@github.com> | 2013-11-04 15:50:33 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-11-04 15:50:33 -0800 |
commit | ea8ce3d17edbc16f8bc905fcee776629c2010eec (patch) | |
tree | 5365c58a123b9792cfdfa8c36d47622074b9640d /examples | |
parent | e6b85be7cff913adb6d8ebe431f91f5a907d056c (diff) | |
download | libgit2-ea8ce3d17edbc16f8bc905fcee776629c2010eec.tar.gz |
Fix warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/network/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index ad01001d7..474b45bbb 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -14,11 +14,12 @@ struct dl_data { int finished; }; -static void progress_cb(const char *str, int len, void *data) +static int progress_cb(const char *str, int len, void *data) { (void)data; printf("remote: %.*s", len, str); fflush(stdout); /* We don't have the \n to force the flush */ + return 0; } static void *download(void *ptr) @@ -78,7 +79,6 @@ int fetch(git_repository *repo, int argc, char **argv) const git_transfer_progress *stats; struct dl_data data; git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT; - int resolve_deltas_ln = 0; #ifndef _WIN32 pthread_t worker; #endif |