diff mbox series

[2/6] qemu: command: Rename BuildNicStr to BuildLegacyNicStr

Message ID ae34f47892d380e57236602600da969069604d2d.1529426092.git.crobinso@redhat.com
State Accepted
Commit faf8a16d8e4a90d9c9694280f773e9c9ee3438c1
Headers show
Series qemu: command: Replace vlan= with netdev= | expand

Commit Message

Cole Robinson June 19, 2018, 4:40 p.m. UTC
Makes it less ambiguous

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
 src/qemu/qemu_command.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 4625851dc5..f7038a8c5e 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -3353,9 +3353,9 @@  qemuBuildMemoryDeviceStr(virDomainMemoryDefPtr mem)
 
 
 static char *
-qemuBuildNicStr(virDomainNetDefPtr net,
-                const char *prefix,
-                int vlan)
+qemuBuildLegacyNicStr(virDomainNetDefPtr net,
+                      const char *prefix,
+                      int vlan)
 {
     char *str;
     char macaddr[VIR_MAC_STRING_BUFLEN];
@@ -8517,7 +8517,7 @@  qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
             goto cleanup;
         virCommandAddArgList(cmd, "-device", nic, NULL);
     } else {
-        if (!(nic = qemuBuildNicStr(net, "nic,", vlan)))
+        if (!(nic = qemuBuildLegacyNicStr(net, "nic,", vlan)))
             goto cleanup;
         virCommandAddArgList(cmd, "-net", nic, NULL);