diff options
Diffstat (limited to 'utils/hwstub')
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 3cc6f8c259..61cb617509 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -647,13 +647,13 @@ bool my_lua_import_soc(const soc_t& soc) | |||
647 | return true; | 647 | return true; |
648 | } | 648 | } |
649 | 649 | ||
650 | bool my_lua_import_soc(const std::list< soc_t >& socs) | 650 | bool my_lua_import_soc(const std::vector< soc_t >& socs) |
651 | { | 651 | { |
652 | for(std::list< soc_t >::const_iterator it = socs.begin(); it != socs.end(); ++it) | 652 | for(size_t i = 0; i < socs.size(); i++) |
653 | { | 653 | { |
654 | if(!g_quiet) | 654 | if(!g_quiet) |
655 | printf("importing %s...\n", it->name.c_str()); | 655 | printf("importing %s...\n", socs[i].name.c_str()); |
656 | if(!my_lua_import_soc(*it)) | 656 | if(!my_lua_import_soc(socs[i])) |
657 | return false; | 657 | return false; |
658 | } | 658 | } |
659 | return true; | 659 | return true; |
@@ -711,7 +711,7 @@ int main(int argc, char **argv) | |||
711 | } | 711 | } |
712 | 712 | ||
713 | // load register descriptions | 713 | // load register descriptions |
714 | std::list< soc_t > socs; | 714 | std::vector< soc_t > socs; |
715 | for(int i = optind; i < argc; i++) | 715 | for(int i = optind; i < argc; i++) |
716 | if(!soc_desc_parse_xml(argv[i], socs)) | 716 | if(!soc_desc_parse_xml(argv[i], socs)) |
717 | { | 717 | { |