summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-13 10:08:01 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-13 10:08:01 -0400
commita1b9d509f076172c5e71ba67f3492bed856cf573 (patch)
tree0acbf8d3a95fbf86759b9a568c17441bb80ee475 /network.h
parentd4aafb057f9ddd9234d112ea2a2d711b20f28711 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.h b/network.h
index 2387c8b..3a4904e 100644
--- a/network.h
+++ b/network.h
@@ -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 {