1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00
Marian Buschsieweke be27eafc4f
sys/net/nanocoap: fix API inconsistency
For in-band signalling that a content format is not valid / present,
the magic number `COAP_FORMAT_NONE` was introduced and the type
`uint16_t` was used. Some APIs however used different in-band signalling
values and types:

- coap_reply_simple(): No signal available, `unsigned int`
- coap_build_reply_header(): negative values, `int`
    (Using `int` would prevent using larger content format numbers on
    8-bit and 16-bit archs, where `int` and `int16_t` have the same
    range.)

This changes the behavior to consistently use `COAP_FORMAT_NONE` as
"no content format" signal and `uint16_t` as type.
2025-02-24 12:05:35 +01:00
..
2020-11-23 16:56:34 +01:00
2021-08-13 19:50:38 +02:00
2025-01-03 10:05:46 +01:00
2022-04-14 09:23:27 +02:00
2025-01-23 14:25:39 +01:00
2022-09-14 15:05:25 +02:00
2021-08-13 19:50:38 +02:00
2020-09-30 11:18:36 +02:00
2020-03-24 10:39:49 +01:00
2023-02-22 16:47:14 +01:00
2024-07-15 11:25:30 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2023-06-12 13:54:06 +02:00
2021-06-18 00:13:08 +02:00
2023-12-15 16:50:21 +01:00
2021-07-05 10:32:50 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2022-09-14 15:05:25 +02:00
2021-07-08 09:40:02 +02:00
2020-11-09 11:45:28 +01:00
2023-08-19 23:23:10 +02:00