Skip to content

Commit

Permalink
fixup! messaging: fix coverity issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Jul 7, 2023
1 parent 51e2d52 commit 62f05e1
Show file tree
Hide file tree
Showing 7 changed files with 541 additions and 186 deletions.
2 changes: 1 addition & 1 deletion api/oc_ri.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ oc_ri_delete_resource(oc_resource_t *resource)
#endif /* (OC_COLLECTIONS) */

if (resource->num_observers > 0) {
int removed_num = coap_remove_observer_by_resource(resource);
int removed_num = coap_remove_observers_by_resource(resource);
OC_DBG("removing resource observers: removed(%d) vs expected(%d)",
removed_num, resource->num_observers);
#if !OC_DBG_IS_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion api/oc_session_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ handle_session_disconnected(const oc_endpoint_t *endpoint)
#endif /* OC_SECURITY */
#ifdef OC_SERVER
/* remove all observations for the endpoint */
coap_remove_observer_by_client(endpoint);
coap_remove_observers_by_client(endpoint);
#endif /* OC_SERVER */
}

Expand Down
Loading

0 comments on commit 62f05e1

Please sign in to comment.