coap_opt_filter_t: Make it a proper structure

Update coap_opt_filter_t to be a structure rather than a 16bit array that is
aliased with the real structure format.

Update code to use pointers where appropriate.
This commit is contained in:
Jon Shallow committed 2021-02-26 09:24:34 +00:00
1 parent 486f97f8d4
commit e2e783033c
12 files changed
+145 -167

No files matched your search

+1 -1
View File
@@ -319,7 +319,7 @@ hnd_get_async(coap_context_t *ctx,
if (async) {
if (async->id != request->tid) {
coap_opt_filter_t f;
coap_option_filter_clear(f);
coap_option_filter_clear(&f);
response->code = COAP_RESPONSE_CODE_SERVICE_UNAVAILABLE;
}
return;