qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 03/26] monitor: Convert Monitor reset_seen field


From: Benoît Canet
Subject: [Qemu-devel] [PATCH v2 03/26] monitor: Convert Monitor reset_seen field too boolean
Date: Fri, 15 Aug 2014 15:35:35 +0200

Signed-off-by: Benoît Canet <address@hidden>
---
 monitor.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/monitor.c b/monitor.c
index c6b450b..48a147c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -191,7 +191,7 @@ typedef struct MonitorQAPIEventState {
 
 struct Monitor {
     CharDriverState *chr;
-    int reset_seen;
+    bool reset_seen;
     int flags;
     int suspend_cnt;
     bool skip_flush;
@@ -606,6 +606,7 @@ int do_qmp_capabilities(Monitor *mon, const QDict *params, 
QObject **ret_data)
 void monitor_data_init(Monitor *mon)
 {
     memset(mon, 0, sizeof(Monitor));
+    mon->reset_seen = false;
     qemu_mutex_init(&mon->out_lock);
     mon->outbuf = qstring_new();
     /* Use *mon_cmds by default. */
@@ -5242,7 +5243,7 @@ static void monitor_event(void *opaque, int event)
         if (!mon->mux_out) {
             readline_show_prompt(mon->rs);
         }
-        mon->reset_seen = 1;
+        mon->reset_seen = true;
         mon_refcount++;
         break;
 
-- 
2.1.0.rc1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]