forked from Imagelibrary/binutils-gdb
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user