From 876377ea633f5edfff2b217b6d65dbaea1f059db Mon Sep 17 00:00:00 2001 From: lns Date: Mon, 14 Oct 2019 00:51:56 +0200 Subject: removed superfluous struct 1-byte align --- dummyshell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dummyshell.c b/dummyshell.c index eb43206..796f7e3 100644 --- a/dummyshell.c +++ b/dummyshell.c @@ -131,7 +131,7 @@ static char readInput(char* buf, size_t* siz, size_t szMax, int key, int flags) #ifdef _HAS_CMD #define NO_ARGS 0b00000001 #define NEED_ARGS 0b00000010 -struct __attribute__((__packed__)) cmd { +struct cmd { char* name; char* path; char* defargs; @@ -264,13 +264,13 @@ static int init_msg(void) return 0; } -struct __attribute__((__packed__)) msgHdr { +struct msgHdr { uint8_t szFrom; uint8_t szMsg; uint64_t timestamp; /* works for x86 and x64 */ }; -struct __attribute__((__packed__)) msg { +struct msg { char* from; char* msg; }; -- cgit v1.2.3