summary refs log tree commit diff stats
path: root/qga/main.c
diff options
context:
space:
mode:
authorAlexChen <alex.chen@huawei.com>2020-10-26 17:05:38 +0800
committerMichael Roth <michael.roth@amd.com>2021-03-16 20:20:37 -0500
commit0697e9ed291c67f7f65f7006f4917cc6177ac180 (patch)
tree0b9608f3bbb667a35e041116681fbc0c3cf3f163 /qga/main.c
parent27e7de3ca740cffbdfc06e9cb138f3339d14dda7 (diff)
downloadfocaccia-qemu-0697e9ed291c67f7f65f7006f4917cc6177ac180.tar.gz
focaccia-qemu-0697e9ed291c67f7f65f7006f4917cc6177ac180.zip
qga: Add spaces around operator
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: AlexChen <alex.chen@huawei.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
*fix 80+ char violation while we're here
*fix w32 build breakage from changing INVALID_SET_FILE_POINTER
 definition from a cast to a subtraction
Signed-off-by: Michael Roth <michael.roth@amd.com>
Diffstat (limited to 'qga/main.c')
-rw-r--r--qga/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qga/main.c b/qga/main.c
index e7f8f3b161..560490467b 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -586,7 +586,7 @@ end:
 static gboolean channel_event_cb(GIOCondition condition, gpointer data)
 {
     GAState *s = data;
-    gchar buf[QGA_READ_COUNT_DEFAULT+1];
+    gchar buf[QGA_READ_COUNT_DEFAULT + 1];
     gsize count;
     GIOStatus status = ga_channel_read(s->channel, buf, QGA_READ_COUNT_DEFAULT, &count);
     switch (status) {
@@ -610,7 +610,7 @@ static gboolean channel_event_cb(GIOCondition condition, gpointer data)
          * host-side chardev. sleep a bit to mitigate this
          */
         if (s->virtio) {
-            usleep(100*1000);
+            usleep(100 * 1000);
         }
         return true;
     default: