Received: from eggs.gnu.org ([2001:4830:134:3::10]:47114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2HpK-0007KS-EZ for qemu-devel@nongnu.org; Fri, 27 Nov 2015 07:08:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2HpG-0006Xd-Dw for qemu-devel@nongnu.org; Fri, 27 Nov 2015 07:08:34 -0500 Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 27 Nov 2015 13:08:24 +0100 Message-Id: <1448626105-29540-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH for-2.5] bt: fix two struct sizes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org See http://permalink.gmane.org/gmane.linux.bluez.kernel/36505. For historical reasons these do not use sizeof, and Coverity caught a mistake in EVT_ENCRYPT_CHANGE_SIZE. Signed-off-by: Paolo Bonzini --- include/hw/bt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/bt.h b/include/hw/bt.h index cb2a7e6..bbea104 100644 --- a/include/hw/bt.h +++ b/include/hw/bt.h @@ -1266,7 +1266,7 @@ typedef struct { uint8_t status; uint16_t handle; } QEMU_PACKED reset_failed_contact_counter_rp; -#define RESET_FAILED_CONTACT_COUNTER_RP_SIZE 4 +#define RESET_FAILED_CONTACT_COUNTER_RP_SIZE 3 #define OCF_READ_LINK_QUALITY 0x0003 typedef struct { @@ -1381,7 +1381,7 @@ typedef struct { uint16_t handle; uint8_t encrypt; } QEMU_PACKED evt_encrypt_change; -#define EVT_ENCRYPT_CHANGE_SIZE 5 +#define EVT_ENCRYPT_CHANGE_SIZE 4 #define EVT_CHANGE_CONN_LINK_KEY_COMPLETE 0x09 typedef struct { -- 2.5.0