Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: lib: coap: method_from_code() API change to return errors.
method_from_code() signature has changed to return error and the method. In case of an invalid code it returns -EINVAL and causes coap_handle_request() to return -ENOTSUP. Fixes: #49498 Signed-off-by: Sagar Shah <sagar.shah@legrand.us>
- Loading branch information
1 parent
1357be3
commit dfd8970
Showing
2 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters