All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH v2 1/5] vnc: pass bool parameter for some functions
@ 2013-06-18  3:45 ` liguang
  0 siblings, 0 replies; 20+ messages in thread
From: liguang @ 2013-06-18  3:45 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial; +Cc: liguang

last parameters of vnc_listen_read,vnc_connect are bool,
so pass 'false/true' instead of '0/1' for them.

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 ui/vnc.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui/vnc.c b/ui/vnc.c
index dfc7459..1a8b940 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -2889,13 +2889,13 @@ static void vnc_listen_read(void *opaque, bool websocket)
 
 static void vnc_listen_regular_read(void *opaque)
 {
-    vnc_listen_read(opaque, 0);
+    vnc_listen_read(opaque, false);
 }
 
 #ifdef CONFIG_VNC_WS
 static void vnc_listen_websocket_read(void *opaque)
 {
-    vnc_listen_read(opaque, 1);
+    vnc_listen_read(opaque, true);
 }
 #endif /* CONFIG_VNC_WS */
 
@@ -3283,7 +3283,7 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)
         if (csock < 0) {
             goto fail;
         }
-        vnc_connect(vs, csock, 0, 0);
+        vnc_connect(vs, csock, 0, false);
     } else {
         /* listen for connects */
         char *dpy;
@@ -3345,5 +3345,5 @@ void vnc_display_add_client(DisplayState *ds, int csock, int skipauth)
 {
     VncDisplay *vs = vnc_display;
 
-    vnc_connect(vs, csock, skipauth, 0);
+    vnc_connect(vs, csock, skipauth, false);
 }
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2013-06-20  0:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18  3:45 [Qemu-trivial] [PATCH v2 1/5] vnc: pass bool parameter for some functions liguang
2013-06-18  3:45 ` [Qemu-devel] " liguang
2013-06-18  3:45 ` [Qemu-trivial] [PATCH v2 2/5] vnc: boolize 'skipauth' liguang
2013-06-18  3:45   ` [Qemu-devel] " liguang
2013-06-18  3:45 ` [Qemu-trivial] [PATCH v2 3/5] qemu-char: use bool in qemu_chr_open_socket liguang
2013-06-18  3:45   ` [Qemu-devel] " liguang
2013-06-19  8:28   ` [Qemu-trivial] " Michael Tokarev
2013-06-19  8:28     ` [Qemu-devel] " Michael Tokarev
2013-06-20  0:21     ` li guang
2013-06-20  0:21       ` [Qemu-devel] " li guang
2013-06-18  3:45 ` [Qemu-trivial] [PATCH v2 4/5] sd: pass bool parameter for sd_init liguang
2013-06-18  3:45   ` [Qemu-devel] " liguang
2013-06-19  8:30   ` [Qemu-trivial] " Michael Tokarev
2013-06-19  8:30     ` [Qemu-devel] " Michael Tokarev
2013-06-18  3:45 ` [Qemu-trivial] [PATCH v2 5/5] ui: boolize 'full_screen' liguang
2013-06-18  3:45   ` [Qemu-devel] " liguang
2013-06-19  8:37   ` [Qemu-trivial] " Michael Tokarev
2013-06-19  8:37     ` [Qemu-devel] " Michael Tokarev
2013-06-19  8:17 ` [Qemu-trivial] [PATCH v2 1/5] vnc: pass bool parameter for some functions Michael Tokarev
2013-06-19  8:17   ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.