]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
network: fix indentation in networkBuildDnsmasqArgv
authorLaine Stump <laine@laine.org>
Sat, 25 Jun 2011 05:11:05 +0000 (01:11 -0400)
committerLaine Stump <laine@laine.org>
Mon, 27 Jun 2011 15:06:30 +0000 (11:06 -0400)
This block was inadvertently added with the wrong indentation.

src/network/bridge_driver.c

index 1b1113241373a3bfba3b487030b371d63c89b912..f15a7a6879393b5a4ff668810a875fc819b80f59 100644 (file)
@@ -614,14 +614,13 @@ networkBuildDnsmasqArgv(virNetworkObjPtr network,
         if (ipdef->nranges || ipdef->nhosts)
             virCommandAddArg(cmd, "--dhcp-no-override");
 
-            if ((dctx = networkSaveDnsmasqHostsfile(ipdef, network->def->dns, network->def->name, false))) {
-                if (dctx->hostsfile->nhosts)
-                    virCommandAddArgPair(cmd, "--dhcp-hostsfile",
-                                         dctx->hostsfile->path);
-                if (dctx->addnhostsfile->nhosts)
-                    virCommandAddArgPair(cmd, "--addn-hosts",
-                                         dctx->addnhostsfile->path);
-
+        if ((dctx = networkSaveDnsmasqHostsfile(ipdef, network->def->dns, network->def->name, false))) {
+            if (dctx->hostsfile->nhosts)
+                virCommandAddArgPair(cmd, "--dhcp-hostsfile",
+                                     dctx->hostsfile->path);
+            if (dctx->addnhostsfile->nhosts)
+                virCommandAddArgPair(cmd, "--addn-hosts",
+                                     dctx->addnhostsfile->path);
             dnsmasqContextFree(dctx);
         }