Revision 086ccd4f src/vm/VirtualMachine.cc

View differences:

src/vm/VirtualMachine.cc
1237 1237
int VirtualMachine::parse_pci(string& error_str)
1238 1238
{
1239 1239
    vector<VectorAttribute *> array_pci;
1240

  
1241 1240
    vector<VectorAttribute *>::iterator it;
1242 1241

  
1242
    int pci_id = 0;
1243

  
1243 1244
    user_obj_template->remove("PCI", array_pci);
1244 1245

  
1245
    for (it = array_pci.begin(); it !=array_pci.end(); it++)
1246
    for (it = array_pci.begin(); it !=array_pci.end(); ++it, ++pci_id)
1246 1247
    {
1248
        (*it)->replace("PCI_ID", pci_id);
1249

  
1247 1250
        obj_template->set(*it);
1248 1251
    }
1249 1252

  
1250
    for (it = array_pci.begin(); it !=array_pci.end(); it++)
1253
    for (it = array_pci.begin(); it !=array_pci.end(); ++it)
1251 1254
    {
1252 1255
        if ( check_pci_attributes(*it, error_str) != 0 )
1253 1256
        {

Also available in: Unified diff