From 9cd196627bef8c208bf04b5be985cedc9cde23ae Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Mar 2012 23:10:36 +0100 Subject: Fix packet struct packing --- src/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/packet.h') diff --git a/src/packet.h b/src/packet.h index 9ae04f7..d442d18 100644 --- a/src/packet.h +++ b/src/packet.h @@ -55,7 +55,7 @@ typedef enum _fastd_reply_code { } fastd_reply_code; -typedef struct _fastd_packet { +typedef struct __attribute__ ((__packed__)) _fastd_packet { #if defined(__LITTLE_ENDIAN_BITFIELD) unsigned req_id : 6; unsigned cp : 1; -- cgit v1.2.3