fix compilation the proper way
[openwrt/svn-archive/archive.git] / sound / mpc / patches / 001-uclibc.patch
1 --- ./src/main.c.orig 2009-02-02 02:04:11.000000000 +0100
2 +++ ./src/main.c 2009-02-17 19:48:55.000000000 +0100
3 @@ -190,7 +190,8 @@
4 static struct command *
5 find_command(const char *name)
6 {
7 - for (unsigned i = 0; mpc_table[i].command != NULL; ++i)
8 + unsigned i = 0;
9 + for (i = 0; mpc_table[i].command != NULL; ++i)
10 if (strcmp(name, mpc_table[i].command) == 0)
11 return &mpc_table[i];
12