Skip to content
Snippets Groups Projects
Commit 885544b4 authored by Lasse Lueder's avatar Lasse Lueder
Browse files

net/nanocoap: remove convenience ptr in coap_hdr_t

Empty array uint8_t data[] is not allowed in ISO-C++. Replacement: function coap_hdr_data_ptr, which handles
the pointer arithmetic to point where hdr.data pointed
parent 34a6e384
Branches
No related tags found
No related merge requests found
...@@ -211,7 +211,6 @@ typedef struct __attribute__((packed)) { ...@@ -211,7 +211,6 @@ typedef struct __attribute__((packed)) {
uint8_t ver_t_tkl; /**< version, token, token length */ uint8_t ver_t_tkl; /**< version, token, token length */
uint8_t code; /**< CoAP code (e.g.m 205) */ uint8_t code; /**< CoAP code (e.g.m 205) */
uint16_t id; /**< Req/resp ID */ uint16_t id; /**< Req/resp ID */
uint8_t data[]; /**< convenience pointer to payload start */
} coap_hdr_t; } coap_hdr_t;
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment