diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-10-14 08:08:25 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-10-14 08:08:25 +0200 |
commit | 1b1c7bfbb3bdfda23602dea887b6462a17715791 (patch) | |
tree | ebe400742b85200f53ad19dd38c83c3f47f059b4 /dummyshell.c | |
parent | 2e13536e0ba210f82ac24def1038ff73c5058b7b (diff) | |
parent | ec3f5d405ed8feacdfb86c10f9be3b91d010f0a4 (diff) |
Merge branch 'master' of ssh://git.lan:/git/tools
Diffstat (limited to 'dummyshell.c')
-rw-r--r-- | dummyshell.c | 6 |
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; }; |