Commit ee144650 by Carson Howard Committed by Carson Howard

examples: ls-files: fix build error

parent e8661169
...@@ -45,6 +45,7 @@ static void usage(const char *message, const char *arg) ...@@ -45,6 +45,7 @@ static void usage(const char *message, const char *arg)
static int parse_options(ls_options *opts, int argc, char *argv[]) static int parse_options(ls_options *opts, int argc, char *argv[])
{ {
int parsing_files = 0; int parsing_files = 0;
int i;
char **file; char **file;
memset(opts, 0, sizeof(ls_options)); memset(opts, 0, sizeof(ls_options));
...@@ -53,7 +54,6 @@ static int parse_options(ls_options *opts, int argc, char *argv[]) ...@@ -53,7 +54,6 @@ static int parse_options(ls_options *opts, int argc, char *argv[])
if (argc < 2) if (argc < 2)
return 0; return 0;
int i;
for (i = 1; i < argc; ++i) { for (i = 1; i < argc; ++i) {
char *a = argv[i]; char *a = argv[i];
......
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