]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuBuildHostNetStr: Realign
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Aug 2016 06:51:38 +0000 (08:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Sep 2016 14:09:03 +0000 (16:09 +0200)
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c

index 1ac0fa116310fdf8466e10da639b7dfb73d1ea85..f24a98bc76fd6472a230bfee3f4f9b588f282893 100644 (file)
@@ -3688,11 +3688,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:
@@ -3715,39 +3715,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: