Merge pull request #2155 from iot-lab/pr/er-coap/stylecleanup

er-coap: Fix style and add missing `addr` argument
This commit is contained in:
Nicolas Tsiftes 2017-03-30 14:14:03 +02:00 committed by GitHub
commit 9d003fe52f
5 changed files with 12 additions and 12 deletions

View file

@ -107,7 +107,7 @@ int coap_obs_remove_observee_by_token(uip_ipaddr_t *addr, uint16_t port,
int coap_obs_remove_observee_by_url(uip_ipaddr_t *addr, uint16_t port, int coap_obs_remove_observee_by_url(uip_ipaddr_t *addr, uint16_t port,
const char *url); const char *url);
void coap_handle_notification(uip_ipaddr_t *, uint16_t port, void coap_handle_notification(uip_ipaddr_t *addr, uint16_t port,
coap_packet_t *notification); coap_packet_t *notification);
coap_observee_t *coap_obs_request_registration(uip_ipaddr_t *addr, coap_observee_t *coap_obs_request_registration(uip_ipaddr_t *addr,

View file

@ -266,7 +266,7 @@ coap_observe_handler(resource_t *resource, void *request, void *response)
{ {
coap_packet_t *const coap_req = (coap_packet_t *)request; coap_packet_t *const coap_req = (coap_packet_t *)request;
coap_packet_t *const coap_res = (coap_packet_t *)response; coap_packet_t *const coap_res = (coap_packet_t *)response;
coap_observer_t * obs; coap_observer_t *obs;
if(coap_req->code == COAP_GET && coap_res->code < 128) { /* GET request and response without error code */ if(coap_req->code == COAP_GET && coap_res->code < 128) { /* GET request and response without error code */
if(IS_OPTION(coap_req, COAP_OPTION_OBSERVE)) { if(IS_OPTION(coap_req, COAP_OPTION_OBSERVE)) {