[PATCH 07/22] network: Fix misaligned arguments

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

 



This patch fixes misaligned arguments.

Signed-off-by: Shi Lei <shi_lei@xxxxxxxxxxxxxx>
---
 src/network/bridge_driver.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 4bbc4f5..fbbc024 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -3478,9 +3478,9 @@ networkValidate(virNetworkDriverStatePtr driver,
             if (ipdef->nranges || ipdef->nhosts) {
                 if (ipv4def) {
                     virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                               _("Multiple IPv4 dhcp sections found -- "
-                                 "dhcp is supported only for a "
-                                 "single IPv4 address on each network"));
+                                   _("Multiple IPv4 dhcp sections found -- "
+                                     "dhcp is supported only for a "
+                                     "single IPv4 address on each network"));
                     return -1;
                 } else {
                     ipv4def = true;
@@ -3491,9 +3491,9 @@ networkValidate(virNetworkDriverStatePtr driver,
             if (ipdef->nranges || ipdef->nhosts) {
                 if (ipv6def) {
                     virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                               _("Multiple IPv6 dhcp sections found -- "
-                                 "dhcp is supported only for a "
-                                 "single IPv6 address on each network"));
+                                   _("Multiple IPv6 dhcp sections found -- "
+                                     "dhcp is supported only for a "
+                                     "single IPv6 address on each network"));
                     return -1;
                 } else {
                     ipv6def = true;
@@ -4321,7 +4321,7 @@ networkGetDHCPLeases(virNetworkPtr net,
                     break;
                 }
                 if (!ipv6 && VIR_SOCKET_ADDR_IS_FAMILY(&ipdef_tmp->address,
-                                                      AF_INET)) {
+                                                       AF_INET)) {
                     lease->prefix = virSocketAddrGetIPPrefix(&ipdef_tmp->address,
                                                              &ipdef_tmp->netmask,
                                                              ipdef_tmp->prefix);
@@ -5740,12 +5740,11 @@ networkRegister(void)
     if (virRegisterStateDriver(&networkStateDriver) < 0)
         return -1;
 
-    virDomainNetSetDeviceImpl(
-        networkAllocateActualDevice,
-        networkNotifyActualDevice,
-        networkReleaseActualDevice,
-        networkBandwidthChangeAllowed,
-        networkBandwidthUpdate);
+    virDomainNetSetDeviceImpl(networkAllocateActualDevice,
+                              networkNotifyActualDevice,
+                              networkReleaseActualDevice,
+                              networkBandwidthChangeAllowed,
+                              networkBandwidthUpdate);
 
     return 0;
 }
-- 
2.17.1


--
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]

  Powered by Linux