[PATCH 5/9] qemuBuildHostNetStr: Realign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/qemu/qemu_command.c | 64 ++++++++++++++++++++++++-------------------------
 1 file changed, 32 insertions(+), 32 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 59fcb4c..e6b3d9d 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -3598,11 +3598,11 @@ qemuBuildHostNetStr(virDomainNetDefPtr net,
     }
 
     switch (netType) {
-    /*
-     * If type='bridge', and we're running as privileged user
-     * or -netdev bridge is not supported then it will fall
-     * through, -net tap,fd
-     */
+        /*
+         * If type='bridge', and we're running as privileged user
+         * or -netdev bridge is not supported then it will fall
+         * through, -net tap,fd
+         */
     case VIR_DOMAIN_NET_TYPE_BRIDGE:
     case VIR_DOMAIN_NET_TYPE_NETWORK:
     case VIR_DOMAIN_NET_TYPE_DIRECT:
@@ -3625,39 +3625,39 @@ qemuBuildHostNetStr(virDomainNetDefPtr net,
         break;
 
     case VIR_DOMAIN_NET_TYPE_CLIENT:
-       virBufferAsprintf(&buf, "socket%cconnect=%s:%d",
-                         type_sep,
-                         net->data.socket.address,
-                         net->data.socket.port);
-       type_sep = ',';
-       break;
+        virBufferAsprintf(&buf, "socket%cconnect=%s:%d",
+                          type_sep,
+                          net->data.socket.address,
+                          net->data.socket.port);
+        type_sep = ',';
+        break;
 
     case VIR_DOMAIN_NET_TYPE_SERVER:
-       virBufferAsprintf(&buf, "socket%clisten=%s:%d",
-                         type_sep,
-                         net->data.socket.address ? net->data.socket.address
-                                                  : "",
-                         net->data.socket.port);
-       type_sep = ',';
-       break;
+        virBufferAsprintf(&buf, "socket%clisten=%s:%d",
+                          type_sep,
+                          net->data.socket.address ? net->data.socket.address
+                          : "",
+                          net->data.socket.port);
+        type_sep = ',';
+        break;
 
     case VIR_DOMAIN_NET_TYPE_MCAST:
-       virBufferAsprintf(&buf, "socket%cmcast=%s:%d",
-                         type_sep,
-                         net->data.socket.address,
-                         net->data.socket.port);
-       type_sep = ',';
-       break;
+        virBufferAsprintf(&buf, "socket%cmcast=%s:%d",
+                          type_sep,
+                          net->data.socket.address,
+                          net->data.socket.port);
+        type_sep = ',';
+        break;
 
     case VIR_DOMAIN_NET_TYPE_UDP:
-       virBufferAsprintf(&buf, "socket%cudp=%s:%d,localaddr=%s:%d",
-                         type_sep,
-                         net->data.socket.address,
-                         net->data.socket.port,
-                         net->data.socket.localaddr,
-                         net->data.socket.localport);
-       type_sep = ',';
-       break;
+        virBufferAsprintf(&buf, "socket%cudp=%s:%d,localaddr=%s:%d",
+                          type_sep,
+                          net->data.socket.address,
+                          net->data.socket.port,
+                          net->data.socket.localaddr,
+                          net->data.socket.localport);
+        type_sep = ',';
+        break;
 
     case VIR_DOMAIN_NET_TYPE_USER:
     default:
-- 
2.8.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]