-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/libcoap: Update to latest libcoap code
- Loading branch information
Showing
3 changed files
with
27 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 0 additions & 184 deletions
184
pkg/libcoap/patches/0001-RIOT-Modify-Kconfig-app.config-to-remove-dep-model.patch
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
pkg/libcoap/patches/0001-coap_block.c-Support-16-bit-size_t-in-coap_context_s.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From d7f856c6c5d1ed8e31e55cc0f0bed7d99f501051 Mon Sep 17 00:00:00 2001 | ||
From: Jon Shallow <supjps-libcoap@jpshallow.com> | ||
Date: Thu, 9 May 2024 16:07:36 +0100 | ||
Subject: [PATCH 1/1] coap_block.c: Support 16 bit size_t in | ||
coap_context_set_max_block_size() | ||
|
||
--- | ||
src/coap_block.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/coap_block.c b/src/coap_block.c | ||
index 0803ced5..2182bad5 100644 | ||
--- a/src/coap_block.c | ||
+++ b/src/coap_block.c | ||
@@ -409,7 +409,7 @@ coap_context_set_max_block_size(coap_context_t *context, size_t max_block_size) | ||
coap_lock_check_locked(context); | ||
max_block_size = (coap_fls((uint32_t)max_block_size >> 4) - 1) & 0x07; | ||
context->block_mode &= ~COAP_BLOCK_MAX_SIZE_MASK; | ||
- context->block_mode |= COAP_BLOCK_MAX_SIZE_SET(max_block_size); | ||
+ context->block_mode |= COAP_BLOCK_MAX_SIZE_SET((uint32_t)max_block_size); | ||
return 1; | ||
} | ||
|
||
-- | ||
2.34.1 | ||
|