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.
This commit is contained in:
Mike Frysinger
2016-01-03 01:40:46 -05:00
parent aba6f46b23
commit 34fed69938
12 changed files with 44 additions and 65 deletions

View File

@@ -171,8 +171,7 @@ sim_open (kind, callback, abfd, argv)
sim_callback = callback;
while (argv[argc])
argc++;
argc = countargv (argv);
while (stat < argc) {
if (argv[stat][0] == '-') {
if (strcmp(argv[stat], "-v") == 0) {