diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-03 01:40:46 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-03 04:08:56 -0500 |
commit | 34fed69938f1296b62354b2a825b49602fe7af50 (patch) | |
tree | aeece93f7f3f39429d4b92cb7e4e16a6217d8f64 /sim/arm/wrapper.c | |
parent | aba6f46b235a3a139c04d5ed6a3310125aa9c982 (diff) | |
download | binutils-gdb-34fed69938f1296b62354b2a825b49602fe7af50.tar.gz |
sim: use libiberty countargv in more places
A bunch of places open code the countargv implementation, or outright
duplicate it (as count_argc). Replace all of those w/countargv.
Diffstat (limited to 'sim/arm/wrapper.c')
-rw-r--r-- | sim/arm/wrapper.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 3938f3ce5fd..274b294ecf7 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -772,12 +772,7 @@ sim_target_parse_command_line (int argc, char ** argv) static void sim_target_parse_arg_array (char ** argv) { - int i; - - for (i = 0; argv[i]; i++) - ; - - sim_target_parse_command_line (i, argv); + sim_target_parse_command_line (countargv (argv), argv); } static sim_cia |