[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/7] vnc: using bool type instead of int for QEMU_OPT
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 3/7] vnc: using bool type instead of int for QEMU_OPT_BOOL |
Date: |
Mon, 16 Feb 2015 09:26:01 +0100 |
From: Gonglei <address@hidden>
Signed-off-by: Gonglei <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/vnc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ui/vnc.c b/ui/vnc.c
index 6a82d7f..e7c35aa 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -3318,8 +3318,8 @@ void vnc_display_open(const char *id, Error **errp)
QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, id);
const char *share, *device_id;
QemuConsole *con;
- int password = 0;
- int reverse = 0;
+ bool password = false;
+ bool reverse = false;
const char *vnc;
const char *has_to;
char *display, *to = NULL;
@@ -3329,11 +3329,11 @@ void vnc_display_open(const char *id, Error **errp)
const char *websocket;
#endif
#ifdef CONFIG_VNC_TLS
- int tls = 0, x509 = 0;
+ bool tls = false, x509 = false;
const char *path;
#endif
#ifdef CONFIG_VNC_SASL
- int sasl = 0;
+ bool sasl = false;
int saslErr;
#endif
#if defined(CONFIG_VNC_TLS) || defined(CONFIG_VNC_SASL)
@@ -3385,7 +3385,7 @@ void vnc_display_open(const char *id, Error **errp)
tls = qemu_opt_get_bool(opts, "tls", false);
path = qemu_opt_get(opts, "x509");
if (path) {
- x509 = 1;
+ x509 = true;
vs->tls.x509verify = qemu_opt_get_bool(opts, "x509verify", false);
if (vnc_tls_set_x509_creds_dir(vs, path) < 0) {
error_setg(errp, "Failed to find x509 certificates/keys in %s",
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] vnc: fixup some QemuOpts conversion fallout., Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 3/7] vnc: using bool type instead of int for QEMU_OPT_BOOL,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/7] vnc: fix qemu crash when not configure vnc option, Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 7/7] vnc: fix coverity warning, Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 2/7] vnc: correct missing property about vnc_display, Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 5/7] vnc: auto assian an id when calling change vnc qmp interface, Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 6/7] ui/vnc: optimize full scanline updates, Gerd Hoffmann, 2015/02/16
- [Qemu-devel] [PULL 4/7] vnc: introduce an wrapper for auto assign vnc id, Gerd Hoffmann, 2015/02/16
- Re: [Qemu-devel] [PULL 0/7] vnc: fixup some QemuOpts conversion fallout., Peter Maydell, 2015/02/24