diff options
author | Anthony Liguori | 2012-03-19 19:37:41 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-03-19 19:37:41 +0100 |
commit | b85a4ec8a7ce348f3f385a53df4e418f2f54c182 (patch) | |
tree | c880041590cad24ccb224b3a9fd4c059c845e3e3 /ui | |
parent | Merge remote-tracking branch 'spice/spice.v50' into staging (diff) | |
parent | qemu-ga: for w32, fix leaked handle ov.hEvent in ga_channel_write() (diff) | |
download | qemu-b85a4ec8a7ce348f3f385a53df4e418f2f54c182.tar.gz qemu-b85a4ec8a7ce348f3f385a53df4e418f2f54c182.tar.xz qemu-b85a4ec8a7ce348f3f385a53df4e418f2f54c182.zip |
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
* stefanha/trivial-patches:
qemu-ga: for w32, fix leaked handle ov.hEvent in ga_channel_write()
ioapic: fix build with DEBUG_IOAPIC
.gitignore: add qemu-bridge-helper and option rom build products
cleanup obsolete typedef
monitor: Remove unused bool field 'qapi' in mon_cmd_t struct
ds1338: Add missing break statement
vnc: Fix packed boolean struct members
Remove type field in ModuleEntry as it's not used
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc-auth-sasl.c | 4 | ||||
-rw-r--r-- | ui/vnc-auth-sasl.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ui/vnc-auth-sasl.c b/ui/vnc-auth-sasl.c index e2045fc0b8..8fba7702c2 100644 --- a/ui/vnc-auth-sasl.c +++ b/ui/vnc-auth-sasl.c @@ -31,7 +31,9 @@ void vnc_sasl_client_cleanup(VncState *vs) { if (vs->sasl.conn) { - vs->sasl.runSSF = vs->sasl.waitWriteSSF = vs->sasl.wantSSF = 0; + vs->sasl.runSSF = false; + vs->sasl.wantSSF = false; + vs->sasl.waitWriteSSF = 0; vs->sasl.encodedLength = vs->sasl.encodedOffset = 0; vs->sasl.encoded = NULL; g_free(vs->sasl.username); diff --git a/ui/vnc-auth-sasl.h b/ui/vnc-auth-sasl.h index fd9b18a8fe..ee243a9d64 100644 --- a/ui/vnc-auth-sasl.h +++ b/ui/vnc-auth-sasl.h @@ -37,9 +37,9 @@ typedef struct VncDisplaySASL VncDisplaySASL; struct VncStateSASL { sasl_conn_t *conn; /* If we want to negotiate an SSF layer with client */ - int wantSSF :1; + bool wantSSF; /* If we are now running the SSF layer */ - int runSSF :1; + bool runSSF; /* * If this is non-zero, then wait for that many bytes * to be written plain, before switching to SSF encoding |