1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 01:11:21 +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
..
2025-01-29 20:51:23 +01:00
2023-01-13 13:58:07 +01:00
2022-09-14 15:05:25 +02:00
2023-04-26 00:53:14 +02:00
2023-02-23 16:44:24 +01:00
2022-09-14 15:05:25 +02:00
2021-06-02 14:07:17 +02:00
2024-01-17 16:05:12 +01:00
2021-12-15 12:41:36 +01:00
2023-01-13 13:58:07 +01:00
2024-11-13 16:01:34 +01:00
2024-10-18 13:14:04 +02:00
2024-12-12 14:28:28 +01:00
2022-12-19 13:03:45 +01:00
2021-08-13 19:50:38 +02:00
2023-06-05 19:09:11 +02:00
2023-01-13 13:58:07 +01:00
2021-12-07 13:00:58 +01:00
2021-08-13 19:50:38 +02:00
2020-11-17 10:10:28 +01:00
2021-01-17 00:17:58 +01:00
2022-11-22 13:39:35 +01:00
2023-05-26 15:04:36 +02:00
2024-02-09 15:24:22 +01:00
2021-12-06 11:53:59 +01:00
2023-05-31 12:55:53 +02:00
2022-02-12 18:30:58 +01:00
2021-08-13 19:50:38 +02:00
2023-08-08 09:09:12 +02:00
2024-05-15 11:20:38 +02:00
2024-06-07 12:05:43 +02:00
2020-10-02 08:15:00 +02:00
2025-02-12 14:47:50 +01:00