void process_autopick_file_command(char *buf)
{
autopick_type an_entry, *entry = &an_entry;
- int count = 0;
- for (int i = 0; buf[i]; i++)
+ int i;
+ for (i = 0; buf[i]; i++)
{
#ifdef JP
if (iskanji(buf[i]))
#endif
if (iswspace(buf[i]) && buf[i] != ' ')
break;
-
- count++;
}
- buf[count] = 0;
+ buf[i] = 0;
if (!autopick_new_entry(entry, buf, FALSE)) return;
- for (int i = 0; i < max_autopick; i++)
+ for (i = 0; i < max_autopick; i++)
{
if (!strcmp(entry->name, autopick_list[i].name)
&& entry->flag[0] == autopick_list[i].flag[0]