diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-25 10:52:20 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-30 20:28:16 +0200 |
commit | ae789622e438e213d8a2059f7aeeeae931442c18 (patch) | |
tree | ce8fc86c0aa34f1b14c4c958767118d56244aed9 /examples/network/git2.c | |
parent | ad4b5beb50dc484f86534dc127646eafb39d96fe (diff) | |
download | libgit2-ae789622e438e213d8a2059f7aeeeae931442c18.tar.gz |
examples: fix warnings in network/
Diffstat (limited to 'examples/network/git2.c')
-rw-r--r-- | examples/network/git2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/network/git2.c b/examples/network/git2.c index 7c02305c4..1bfb13c9e 100644 --- a/examples/network/git2.c +++ b/examples/network/git2.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <string.h> #include "common.h" @@ -16,7 +17,7 @@ struct { { NULL, NULL} }; -int run_command(git_cb fn, int argc, char **argv) +static int run_command(git_cb fn, int argc, char **argv) { int error; git_repository *repo; @@ -45,7 +46,7 @@ int run_command(git_cb fn, int argc, char **argv) int main(int argc, char **argv) { - int i, error; + int i; if (argc < 2) { fprintf(stderr, "usage: %s <cmd> [repo]\n", argv[0]); |