The new order aligns better with the virHostdev prefix.
---
src/util/virhostdev.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index d3e15b7..e2accb4 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -750,7 +750,8 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
* are locked
*/
static void
-virHostdevReattachPCIDevice(virPCIDevicePtr dev, virHostdevManagerPtr mgr)
+virHostdevReattachPCIDevice(virHostdevManagerPtr mgr,
+ virPCIDevicePtr dev)
{
/* If the device is not managed and was attached to guest
* successfully, it must have been inactive.
@@ -890,7 +891,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr hostdev_mgr,
*/
while (virPCIDeviceListCount(pcidevs) > 0) {
virPCIDevicePtr dev = virPCIDeviceListStealIndex(pcidevs, 0);
- virHostdevReattachPCIDevice(dev, hostdev_mgr);
+ virHostdevReattachPCIDevice(hostdev_mgr, dev);
}
virObjectUnref(pcidevs);
--
2.5.0