diff options
author | Carson Howard <carsonh@axosoft.com> | 2017-11-13 21:03:21 -0700 |
---|---|---|
committer | Carson Howard <tylerw+systemtest@axosoft.com> | 2018-03-27 07:18:31 -0700 |
commit | ee1446506fef2b2837c9a8f8ce2c2c4d47ecddff (patch) | |
tree | f26ed14637deedd03eb907177e512a78870025ea /examples | |
parent | e86611690e9c6c735c47530975cec45ea6c16f1d (diff) | |
download | libgit2-ee1446506fef2b2837c9a8f8ce2c2c4d47ecddff.tar.gz |
examples: ls-files: fix build error
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ls-files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ls-files.c b/examples/ls-files.c index c29a93dd8..3dd3a617e 100644 --- a/examples/ls-files.c +++ b/examples/ls-files.c @@ -45,6 +45,7 @@ static void usage(const char *message, const char *arg) static int parse_options(ls_options *opts, int argc, char *argv[]) { int parsing_files = 0; + int i; char **file; memset(opts, 0, sizeof(ls_options)); @@ -53,7 +54,6 @@ static int parse_options(ls_options *opts, int argc, char *argv[]) if (argc < 2) return 0; - int i; for (i = 1; i < argc; ++i) { char *a = argv[i]; |