From 4e0de6eddfcee9893e613645fdfc9cbd4cc6f667 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 29 Mar 2013 15:57:59 +0800 Subject: [PATCH] AcessNative - Fixed alignment on request header --- AcessNative/syscalls.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index b9661bcf..cef8dd01 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -27,13 +27,13 @@ typedef struct sRequestValue { } tRequestValue; typedef struct sRequestHeader { - uint16_t ClientID; - uint16_t CallID; //!< \see eSyscalls + uint32_t ClientID; uint32_t MessageLength; + uint16_t CallID; //!< \see eSyscalls uint16_t NParams; tRequestValue Params[]; -} tRequestHeader; +} __attribute__((packed)) tRequestHeader; enum eSyscalls { -- 2.20.1