Skip to content

Commit

Permalink
Merge pull request contiki-os#154 from malvira/erbium-build-fixes-er3-7
Browse files Browse the repository at this point in the history
Fix er 3 and 7 buids in latest erbuim (subscribers counter has changed type)
  • Loading branch information
malvira committed Mar 13, 2013
2 parents b01db75 + 4dd29cc commit 163cb7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/er-coap-03/er-coap-03-observing.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ coap_remove_observer_by_token(uip_ipaddr_t *addr, uint16_t port, uint8_t *token,
}
/*-----------------------------------------------------------------------------------*/
void
coap_notify_observers(resource_t *resource, uint16_t obs_counter, void *notification)
coap_notify_observers(resource_t *resource, int32_t obs_counter, void *notification)
{
coap_packet_t *const coap_res = (coap_packet_t *) notification;
coap_observer_t* obs = NULL;
Expand Down
2 changes: 1 addition & 1 deletion apps/er-coap-03/er-coap-03-observing.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ coap_observer_t *coap_add_observer(uip_ipaddr_t *addr, uint16_t port, const uint
void coap_remove_observer(coap_observer_t *o);
int coap_remove_observer_by_client(uip_ipaddr_t *addr, uint16_t port);
int coap_remove_observer_by_token(uip_ipaddr_t *addr, uint16_t port, uint8_t *token, size_t token_len);
void coap_notify_observers(resource_t *resource, uint16_t obs_counter, void *notification);
void coap_notify_observers(resource_t *resource, int32_t obs_counter, void *notification);

void coap_observe_handler(resource_t *resource, void *request, void *response);

Expand Down
2 changes: 1 addition & 1 deletion apps/er-coap-07/er-coap-07-observing.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ coap_remove_observer_by_mid(uip_ipaddr_t *addr, uint16_t port, uint16_t mid)
}
/*-----------------------------------------------------------------------------------*/
void
coap_notify_observers(resource_t *resource, uint16_t obs_counter, void *notification)
coap_notify_observers(resource_t *resource, int32_t obs_counter, void *notification)
{
coap_packet_t *const coap_res = (coap_packet_t *) notification;
coap_observer_t* obs = NULL;
Expand Down
2 changes: 1 addition & 1 deletion apps/er-coap-07/er-coap-07-observing.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int coap_remove_observer_by_token(uip_ipaddr_t *addr, uint16_t port, uint8_t *to
int coap_remove_observer_by_url(uip_ipaddr_t *addr, uint16_t port, const char *url);
int coap_remove_observer_by_mid(uip_ipaddr_t *addr, uint16_t port, uint16_t mid);

void coap_notify_observers(resource_t *resource, uint16_t obs_counter, void *notification);
void coap_notify_observers(resource_t *resource, int32_t obs_counter, void *notification);

void coap_observe_handler(resource_t *resource, void *request, void *response);

Expand Down

0 comments on commit 163cb7c

Please sign in to comment.