-2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com
+2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
+
+ * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
+ `optarg' to `oind' and `oarg', respectively(-Wshadow).
+ (mi_cmd_env_dir): Ditto.
+
+2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
- * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and `optarg'
- to `oind' and `oarg', respectively(-Wshadow).
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
+ `optarg' to `oind' and `oarg', respectively(-Wshadow).
2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
char *exec_path;
char *env;
int reset = 0;
- int optind = 0;
+ int oind = 0;
int i;
- char *optarg;
+ char *oarg;
enum opt
{
RESET_OPT
while (1)
{
int opt = mi_getopt ("-environment-path", argc, argv, opts,
- &optind, &optarg);
+ &oind, &oarg);
if (opt < 0)
break;
break;
}
}
- argv += optind;
- argc -= optind;
+ argv += oind;
+ argc -= oind;
if (reset)
{
struct ui_out *uiout = current_uiout;
int i;
- int optind = 0;
+ int oind = 0;
int reset = 0;
- char *optarg;
+ char *oarg;
enum opt
{
RESET_OPT
while (1)
{
int opt = mi_getopt ("-environment-directory", argc, argv, opts,
- &optind, &optarg);
+ &oind, &oarg);
if (opt < 0)
break;
break;
}
}
- argv += optind;
- argc -= optind;
+ argv += oind;
+ argc -= oind;
if (reset)
{