mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 18:37:10 +03:00
RIOT: Handle ints being 16 bits
This commit is contained in:
1 parent
86b778167a
commit
b1b60fe159
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -1062,7 +1062,7 @@ no_more:
|
||||
if (exp) {
|
||||
snprintf((char *)&buf, sizeof(buf), "%s", exp);
|
||||
} else {
|
||||
snprintf((char *)&buf, sizeof(buf), "(%u)", value);
|
||||
snprintf((char *)&buf, sizeof(buf), "(%" PRIu32 ")", value);
|
||||
}
|
||||
buf_len = strlen((char *)buf);
|
||||
break;
|
||||
|
||||
+2
-1
@@ -307,7 +307,8 @@ coap_pdu_duplicate_lkd(const coap_pdu_t *old_pdu,
|
||||
}
|
||||
} else {
|
||||
coap_delete_pdu_lkd(pdu);
|
||||
coap_log_info("coap_pdu_duplicate: Uri-Path-Abbrev value %u not known for fallback\n", value);
|
||||
coap_log_info("coap_pdu_duplicate: Uri-Path-Abbrev value %" PRIu32 " not known for fallback\n",
|
||||
value);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user