Skip to content

Commit

Permalink
B #3230 Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Apr 23, 2019
1 parent 806b0a1 commit 24f503c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/host/HostShare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void HostSharePCI::add(vector<VectorAttribute *> &devs, int vmid)
map<string, PCIDevice *>::const_iterator jt;

unsigned int vendor_id, device_id, class_id;
string addres;
string address;
int vendor_rc, device_rc, class_rc, addr_rc;

for ( it=devs.begin(); it!= devs.end(); it++)
Expand All @@ -130,7 +130,7 @@ void HostSharePCI::add(vector<VectorAttribute *> &devs, int vmid)
device_rc = get_pci_value("DEVICE", *it, device_id);
class_rc = get_pci_value("CLASS" , *it, class_id);

addr_rc = (*it)->vector_value("ADDRESS", addres);
addr_rc = (*it)->vector_value("ADDRESS", address);

for (jt=pci_devices.begin(); jt!=pci_devices.end(); jt++)
{
Expand All @@ -153,7 +153,7 @@ void HostSharePCI::add(vector<VectorAttribute *> &devs, int vmid)

if (addr_rc != -1)
{
(*it)->replace("PREV_ADDRESS", addres);
(*it)->replace("PREV_ADDRESS", address);
}

break;
Expand Down

0 comments on commit 24f503c

Please sign in to comment.