qemu-e2k/ui
Stefan Weil ee032ca146 vnc: Fix packed boolean struct members
This patch fixes warnings reported by splint:

For variables which are packed in a single bit, a signed data type
like 'int' does not make much sense.

There is no obvious reason why the two values should be packed,
so I removed the packing and changed the data type to bool
because both are used as boolean values.

v2:

Some versions of gcc complain after this modification,
for example gcc (Debian 4.4.5-8) 4.4.5):

ui/vnc-auth-sasl.c: In function ‘vnc_sasl_client_cleanup’:
ui/vnc-auth-sasl.c:34: error: suggest parentheses around assignment used as truth value

Obviously, the compiler does not like code which does
bool = unsigned = bool = 0

Splitting that code in three statements works.

Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2012-03-19 10:52:52 +00:00
..
cocoa.m cocoa: Close sheet after image file selection 2011-11-01 20:41:06 +01:00
curses_keys.h
curses.c
d3des.c
d3des.h
keymaps.c ui: Plug memory leaks on parse_keyboard_layout() error path 2011-11-11 12:49:51 -06:00
keymaps.h
qemu-spice.h Revert "qemu-char: Print strerror message on failure" and deps 2012-02-24 09:06:56 -06:00
sdl_keysym.h
sdl_zoom_template.h
sdl_zoom.c
sdl_zoom.h
sdl.c sdl: remove NULL check, g_malloc0 can't fail 2012-02-27 09:46:51 +01:00
spice-core.c Error out when tls-channel option is used without TLS 2012-02-28 17:22:30 +01:00
spice-display.c qxl: introduce QXLCookie 2012-02-27 09:46:52 +01:00
spice-display.h qxl: make qxl_render_update async 2012-02-27 09:46:52 +01:00
spice-input.c
vnc_keysym.h
vnc-auth-sasl.c vnc: Fix packed boolean struct members 2012-03-19 10:52:52 +00:00
vnc-auth-sasl.h vnc: Fix packed boolean struct members 2012-03-19 10:52:52 +00:00
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h vnc: Add break statement 2012-03-08 15:22:11 +00:00
vnc-enc-hextile.c ui/vnc: Fix use of free() instead of g_free() 2011-11-01 16:52:05 -05:00
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-enc-zywrle.h Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-jobs-async.c vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
vnc-jobs-sync.c
vnc-jobs.h vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
vnc-palette.c
vnc-palette.h
vnc-tls.c ui/vnc: Fix use of free() instead of g_free() 2011-11-01 16:52:05 -05:00
vnc-tls.h
vnc.c vnc: Limit r/w access to size of allocated memory 2012-03-14 16:22:46 -05:00
vnc.h vnc: don't mess up with iohandlers in the vnc thread 2012-03-14 16:22:46 -05:00
x_keymap.c
x_keymap.h