Received: from eggs.gnu.org ([208.118.235.92]:55025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1Hn2-0004rG-Ml for qemu-devel@nongnu.org; Sat, 25 Feb 2012 08:36:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1Hmx-0004XP-Om for qemu-devel@nongnu.org; Sat, 25 Feb 2012 08:35:56 -0500 From: Stefan Weil Date: Sat, 25 Feb 2012 14:35:47 +0100 Message-Id: <1330176948-14379-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] vnc: Fix packed boolean struct members List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Trivial Cc: Stefan Weil , Anthony Liguori , qemu-devel@nongnu.org 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. Cc: Anthony Liguori Signed-off-by: Stefan Weil --- ui/vnc-auth-sasl.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/vnc-auth-sasl.h b/ui/vnc-auth-sasl.h index fd9b18a..ee243a9 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 -- 1.7.9