diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-13 10:08:01 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-13 10:08:01 -0400 |
commit | a1b9d509f076172c5e71ba67f3492bed856cf573 (patch) | |
tree | 0acbf8d3a95fbf86759b9a568c17441bb80ee475 /network.h | |
parent | d4aafb057f9ddd9234d112ea2a2d711b20f28711 (diff) |
Make the `data` member of `cmd` a flexable array
member.
This is to make it easier to send the packet, due to
not having to create an extra buffer before sending
the packet.
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ struct cmd_header { struct cmd { cmd_header header; /* Command Header. */ - uint8_t *data; /* Command data. */ + uint8_t data[]; /* Command data. */ }; struct packet { |