Commit ea8ce3d1 by Ben Straub

Fix warnings

parent e6b85be7
...@@ -14,11 +14,12 @@ struct dl_data { ...@@ -14,11 +14,12 @@ struct dl_data {
int finished; 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; (void)data;
printf("remote: %.*s", len, str); printf("remote: %.*s", len, str);
fflush(stdout); /* We don't have the \n to force the flush */ fflush(stdout); /* We don't have the \n to force the flush */
return 0;
} }
static void *download(void *ptr) static void *download(void *ptr)
...@@ -78,7 +79,6 @@ int fetch(git_repository *repo, int argc, char **argv) ...@@ -78,7 +79,6 @@ int fetch(git_repository *repo, int argc, char **argv)
const git_transfer_progress *stats; const git_transfer_progress *stats;
struct dl_data data; struct dl_data data;
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT; git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
int resolve_deltas_ln = 0;
#ifndef _WIN32 #ifndef _WIN32
pthread_t worker; pthread_t worker;
#endif #endif
......
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