From 50d97bb33e83f229d671edf26c56ff4d71469b9f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 24 Aug 2015 16:13:55 +1000 Subject: [PATCH] hidpp10: mark the message struct as __attribute__((packed)) Signed-off-by: Peter Hutterer --- src/hidpp10.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidpp10.h b/src/hidpp10.h index 95078cc2..6b1ece98 100644 --- a/src/hidpp10.h +++ b/src/hidpp10.h @@ -54,7 +54,7 @@ struct _hidpp10_message { uint8_t parameters[3]; uint8_t string[16]; }; -}; +} __attribute__((packed)); union hidpp10_message { struct _hidpp10_message msg;