[PATCH 08/29] logging: Add spaces after casts

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

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/logging/log_daemon.c          | 16 ++++++++--------
 src/logging/log_daemon_dispatch.c |  6 +++---
 src/logging/log_manager.c         | 18 +++++++++---------
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c
index 35d7ebb6d2bb..3d34f6533323 100644
--- a/src/logging/log_daemon.c
+++ b/src/logging/log_daemon.c
@@ -595,7 +595,7 @@ virLogDaemonClientFree(void *opaque)
 
     VIR_DEBUG("priv=%p client=%lld",
               priv,
-              (unsigned long long)priv->clientPid);
+              (unsigned long long) priv->clientPid);
 
     virMutexDestroy(&priv->lock);
     VIR_FREE(priv);
@@ -629,21 +629,21 @@ virLogDaemonClientNew(virNetServerClientPtr client,
         goto error;
 
     VIR_DEBUG("New client pid %llu uid %llu",
-              (unsigned long long)priv->clientPid,
-              (unsigned long long)clientuid);
+              (unsigned long long) priv->clientPid,
+              (unsigned long long) clientuid);
 
     if (!privileged) {
         if (geteuid() != clientuid) {
             virReportRestrictedError(_("Disallowing client %llu with uid %llu"),
-                                     (unsigned long long)priv->clientPid,
-                                     (unsigned long long)clientuid);
+                                     (unsigned long long) priv->clientPid,
+                                     (unsigned long long) clientuid);
             goto error;
         }
     } else {
         if (clientuid != 0) {
             virReportRestrictedError(_("Disallowing client %llu with uid %llu"),
-                                     (unsigned long long)priv->clientPid,
-                                     (unsigned long long)clientuid);
+                                     (unsigned long long) priv->clientPid,
+                                     (unsigned long long) clientuid);
             goto error;
         }
     }
@@ -728,7 +728,7 @@ virLogDaemonGetExecRestartMagic(void)
 {
     char *ret;
 
-    ignore_value(virAsprintf(&ret, "%lld", (long long int)getpid()));
+    ignore_value(virAsprintf(&ret, "%lld", (long long int) getpid()));
     return ret;
 }
 
diff --git a/src/logging/log_daemon_dispatch.c b/src/logging/log_daemon_dispatch.c
index ec691127ab70..0ef9e8bffcda 100644
--- a/src/logging/log_daemon_dispatch.c
+++ b/src/logging/log_daemon_dispatch.c
@@ -54,7 +54,7 @@ virLogManagerProtocolDispatchDomainOpenLogFile(virNetServerPtr server ATTRIBUTE_
 
     if ((fd = virLogHandlerDomainOpenLogFile(virLogDaemonGetHandler(logDaemon),
                                              args->driver,
-                                             (unsigned char *)args->dom.uuid,
+                                             (unsigned char *) args->dom.uuid,
                                              args->dom.name,
                                              args->path,
                                              trunc,
@@ -121,7 +121,7 @@ virLogManagerProtocolDispatchDomainReadLogFile(virNetServerPtr server ATTRIBUTE_
     if (args->maxlen > VIR_LOG_MANAGER_PROTOCOL_STRING_MAX) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("Requested data len %llu is larger than maximum %d"),
-                       (unsigned long long)args->maxlen,
+                       (unsigned long long) args->maxlen,
                        VIR_LOG_MANAGER_PROTOCOL_STRING_MAX);
         goto cleanup;
     }
@@ -157,7 +157,7 @@ virLogManagerProtocolDispatchDomainAppendLogFile(virNetServerPtr server ATTRIBUT
 
     if ((rv = virLogHandlerDomainAppendLogFile(virLogDaemonGetHandler(logDaemon),
                                                args->driver,
-                                               (unsigned char *)args->dom.uuid,
+                                               (unsigned char *) args->dom.uuid,
                                                args->dom.name,
                                                args->path,
                                                args->message,
diff --git a/src/logging/log_manager.c b/src/logging/log_manager.c
index e84abdbef927..067a321e2d03 100644
--- a/src/logging/log_manager.c
+++ b/src/logging/log_manager.c
@@ -170,10 +170,10 @@ virLogManagerDomainOpenLogFile(virLogManagerPtr mgr,
     memset(&args, 0, sizeof(args));
     memset(&ret, 0, sizeof(ret));
 
-    args.driver = (char *)driver;
+    args.driver = (char *) driver;
     memcpy(args.dom.uuid, domuuid, VIR_UUID_BUFLEN);
-    args.dom.name = (char *)domname;
-    args.path = (char *)path;
+    args.dom.name = (char *) domname;
+    args.path = (char *) path;
     args.flags = flags;
 
     if (virNetClientProgramCall(mgr->program,
@@ -227,7 +227,7 @@ virLogManagerDomainGetLogFilePosition(virLogManagerPtr mgr,
     memset(&args, 0, sizeof(args));
     memset(&ret, 0, sizeof(ret));
 
-    args.path = (char *)path;
+    args.path = (char *) path;
     args.flags = flags;
 
     if (virNetClientProgramCall(mgr->program,
@@ -263,7 +263,7 @@ virLogManagerDomainReadLogFile(virLogManagerPtr mgr,
     memset(&args, 0, sizeof(args));
     memset(&ret, 0, sizeof(ret));
 
-    args.path = (char *)path;
+    args.path = (char *) path;
     args.flags = flags;
     args.pos.inode = inode;
     args.pos.offset = offset;
@@ -298,11 +298,11 @@ virLogManagerDomainAppendMessage(virLogManagerPtr mgr,
 
     memset(&args, 0, sizeof(args));
 
-    args.driver = (char *)driver;
+    args.driver = (char *) driver;
     memcpy(args.dom.uuid, domuuid, VIR_UUID_BUFLEN);
-    args.dom.name = (char *)domname;
-    args.path = (char *)path;
-    args.message = (char *)message;
+    args.dom.name = (char *) domname;
+    args.path = (char *) path;
+    args.message = (char *) message;
     args.flags = flags;
 
     if (virNetClientProgramCall(mgr->program,
-- 
2.17.0

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