Skip to content

Commit

Permalink
Merge pull request #768 from KNX-IOT/frank-eitt-fix
Browse files Browse the repository at this point in the history
Fix function arg type for oc_notify_observers
  • Loading branch information
WAvdBeek authored Feb 14, 2024
2 parents 183096f + 562c520 commit 666fa38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/oc_server_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ oc_send_empty_separate_response(oc_separate_response_t *handle,
}

int
oc_notify_observers(oc_resource_t *resource)
oc_notify_observers(const oc_resource_t *resource)
{
return coap_notify_observers(resource, NULL, NULL);
}
Expand Down
2 changes: 1 addition & 1 deletion include/oc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ void oc_send_empty_separate_response(oc_separate_response_t *handle,
* - the number observers notified on success
* - `0` on failure could also mean no registered observers
*/
int oc_notify_observers(oc_resource_t *resource);
int oc_notify_observers(const oc_resource_t *resource);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 666fa38

Please sign in to comment.