[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 1/5] vnc: pass bool parame ter for some functions
From: |
liguang |
Subject: |
[Qemu-devel] [PATCH v2 1/5] vnc: pass bool parame ter for some functions |
Date: |
Tue, 18 Jun 2013 11:45:33 +0800 |
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 <address@hidden>
Signed-off-by: liguang <address@hidden>
---
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
- [Qemu-devel] [PATCH v2 1/5] vnc: pass bool parame ter for some functions,
liguang <=
- [Qemu-devel] [PATCH v2 2/5] vnc: boolize 'skipauth', liguang, 2013/06/17
- [Qemu-devel] [PATCH v2 3/5] qemu-char: use bool in qemu_chr_open_socket, liguang, 2013/06/17
- [Qemu-devel] [PATCH v2 4/5] sd: pass bool parameter for sd_init, liguang, 2013/06/17
- [Qemu-devel] [PATCH v2 5/5] ui: boolize 'full_screen', liguang, 2013/06/17
- Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 1/5] vnc: pass bool parameter for some functions, Michael Tokarev, 2013/06/19