Skip to content

Commit

Permalink
pkg/libcoap: Update to latest libcoap code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed May 9, 2024
1 parent 278cf32 commit 2f4d794
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 185 deletions.
2 changes: 1 addition & 1 deletion pkg/libcoap/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PKG_NAME=libcoap
PKG_URL=https://github.com/obgm/libcoap
PKG_VERSION=214665ac4b44b1b6a7e38d4d6907ee835a174928
PKG_VERSION=e599e25d6e2b0d0e7b29dc2710f2f15e0b7e5e51
PKG_LICENSE=BSD-2-Clause

LIBCOAP_BUILD_DIR=$(BINDIR)/pkg/$(PKG_NAME)
Expand Down

This file was deleted.

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

0 comments on commit 2f4d794

Please sign in to comment.