You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/04/10 13:29:07 UTC
[mynewt-core] branch master updated: os_mutex: Fix
os_mutex_get_level return type
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9be5630 os_mutex: Fix os_mutex_get_level return type
9be5630 is described below
commit 9be56303a909580a986f358afa33fa13b0a84b1b
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Wed Apr 10 11:36:45 2019 +0200
os_mutex: Fix os_mutex_get_level return type
mu_level is uint16_t
---
kernel/os/include/os/os_mutex.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/os/include/os/os_mutex.h b/kernel/os/include/os/os_mutex.h
index e317261..9993534 100644
--- a/kernel/os/include/os/os_mutex.h
+++ b/kernel/os/include/os/os_mutex.h
@@ -117,7 +117,7 @@ os_error_t os_mutex_pend(struct os_mutex *mu, os_time_t timeout);
*
* @return number of times lock was called from current task
*/
-static inline os_error_t os_mutex_get_level(struct os_mutex *mu)
+static inline uint16_t os_mutex_get_level(struct os_mutex *mu)
{
return mu->mu_level;
}