diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-11 15:42:44 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-21 22:52:50 +0400 |
commit | 2c8cf549571bbe0b245fc4f9680e1dbde39a015c (patch) | |
tree | 9c0b341f760c7e2c377abbe6ce1dc02f68536191 /include/ui | |
parent | 1984745ea8ad309a06690a83e91d031d21d709ff (diff) | |
download | qemu-2c8cf549571bbe0b245fc4f9680e1dbde39a015c.zip qemu-2c8cf549571bbe0b245fc4f9680e1dbde39a015c.tar.gz qemu-2c8cf549571bbe0b245fc4f9680e1dbde39a015c.tar.bz2 |
vnc: use booleans for vnc_connect, vnc_listen_read and vnc_display_add_client
Some arguments to these functions are booleans - either by declaration,
or by actual usage, but sometimes value of 0 or 1 is passed for a bool,
and sometimes it is declared as int but a bool value, or true/false,
is passed to it instead. Clean it up a bit.
Cc: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index f1d79f9..98edf41 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -314,7 +314,7 @@ void cocoa_display_init(DisplayState *ds, int full_screen); /* vnc.c */ void vnc_display_init(DisplayState *ds); void vnc_display_open(DisplayState *ds, const char *display, Error **errp); -void vnc_display_add_client(DisplayState *ds, int csock, int skipauth); +void vnc_display_add_client(DisplayState *ds, int csock, bool skipauth); char *vnc_display_local_addr(DisplayState *ds); #ifdef CONFIG_VNC int vnc_display_password(DisplayState *ds, const char *password); |