[PATCH 3/3] Fix some coding style issues

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

 



From: jiangjiacheng <jiangjiacheng@xxxxxxxxxx>

Fix some coding style issues with alignment and spaces.

Signed-off-by: jiangjiacheng <jiangjiacheng@xxxxxxxxxx>
---
 src/conf/domain_conf.c       |  2 +-
 src/rpc/virnetserverclient.c | 28 ++++++++++++++--------------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index d456fd0067..c904d9c63d 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -26234,7 +26234,7 @@ virDomainMemorytuneDefFormat(virBuffer *buf,
                                      &childrenBuf) < 0)
         return -1;
 
-    for (i = 0; i< resctrl->nmonitors; i++) {
+    for (i = 0; i < resctrl->nmonitors; i++) {
         if (virDomainResctrlMonDefFormatHelper(resctrl->monitors[i],
                                                VIR_RESCTRL_MONITOR_TYPE_MEMBW,
                                                &childrenBuf) < 0)
diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c
index d57ca07167..a7d2dfa795 100644
--- a/src/rpc/virnetserverclient.c
+++ b/src/rpc/virnetserverclient.c
@@ -416,15 +416,15 @@ virNetServerClientNewInternal(unsigned long long id,
 
 
 virNetServerClient *virNetServerClientNew(unsigned long long id,
-                                            virNetSocket *sock,
-                                            int auth,
-                                            bool readonly,
-                                            size_t nrequests_max,
-                                            virNetTLSContext *tls,
-                                            virNetServerClientPrivNew privNew,
-                                            virNetServerClientPrivPreExecRestart privPreExecRestart,
-                                            virFreeCallback privFree,
-                                            void *privOpaque)
+                                          virNetSocket *sock,
+                                          int auth,
+                                          bool readonly,
+                                          size_t nrequests_max,
+                                          virNetTLSContext *tls,
+                                          virNetServerClientPrivNew privNew,
+                                          virNetServerClientPrivPreExecRestart privPreExecRestart,
+                                          virFreeCallback privFree,
+                                          void *privOpaque)
 {
     virNetServerClient *client;
     time_t now;
@@ -454,11 +454,11 @@ virNetServerClient *virNetServerClientNew(unsigned long long id,
 
 
 virNetServerClient *virNetServerClientNewPostExecRestart(virNetServer *srv,
-                                                           virJSONValue *object,
-                                                           virNetServerClientPrivNewPostExecRestart privNew,
-                                                           virNetServerClientPrivPreExecRestart privPreExecRestart,
-                                                           virFreeCallback privFree,
-                                                           void *privOpaque)
+                                                         virJSONValue *object,
+                                                         virNetServerClientPrivNewPostExecRestart privNew,
+                                                         virNetServerClientPrivPreExecRestart privPreExecRestart,
+                                                         virFreeCallback privFree,
+                                                         void *privOpaque)
 {
     virJSONValue *child;
     virNetServerClient *client = NULL;
-- 
2.33.0





[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