aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2019-10-14 00:51:56 +0200
committerlns <matzeton@googlemail.com>2019-10-14 00:51:56 +0200
commit876377ea633f5edfff2b217b6d65dbaea1f059db (patch)
tree413f6aa8c67b3f2ed792658cb98e022e41241949
parentde76e325f4644c6191b4eae7559fd577f7636059 (diff)
removed superfluous struct 1-byte align
-rw-r--r--dummyshell.c6
1 files 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;
};