mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-08 10:32:53 +03:00
Merge branch 'PawelWMS-bracket_fixes' into develop
This resolves PR #76 [1]. [1] https://github.com/obgm/libcoap/pull/76
This commit is contained in:
commit
ddfb94bc92
1 file changed
+3
-6
+3
-6
@@ -280,8 +280,7 @@ coap_print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen
|
||||
*buflen = written;
|
||||
output_length = p - buf;
|
||||
|
||||
if (output_length > COAP_PRINT_STATUS_MAX)
|
||||
{
|
||||
if (output_length > COAP_PRINT_STATUS_MAX) {
|
||||
return COAP_PRINT_STATUS_ERROR;
|
||||
}
|
||||
|
||||
@@ -554,8 +553,7 @@ coap_print_link(const coap_resource_t *resource,
|
||||
|
||||
output_length = p - buf;
|
||||
|
||||
if (output_length > COAP_PRINT_STATUS_MAX)
|
||||
{
|
||||
if (output_length > COAP_PRINT_STATUS_MAX) {
|
||||
return COAP_PRINT_STATUS_ERROR;
|
||||
}
|
||||
|
||||
@@ -743,8 +741,7 @@ coap_notify_observers(coap_context_t *context, coap_resource_t *r) {
|
||||
|
||||
tid = coap_send( obs->session, response );
|
||||
|
||||
if (COAP_INVALID_TID == tid)
|
||||
{
|
||||
if (COAP_INVALID_TID == tid) {
|
||||
debug("coap_check_notify: sending failed, resource stays partially dirty\n");
|
||||
obs->dirty = 1;
|
||||
r->partiallydirty = 1;
|
||||
|
||||
Reference in new issue
Block a user