diff --git a/src/resource.c b/src/resource.c index fa042de0..13a9bdac 100644 --- a/src/resource.c +++ b/src/resource.c @@ -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;