include: posix: correcting the return type of sleep.
Currently return type of sleep is int, but as per POSIX 1003.1 it should be unsigned. Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
This commit is contained in:
parent
5afa30ccef
commit
43383701ca
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* See IEEE 1003.1
|
* See IEEE 1003.1
|
||||||
*/
|
*/
|
||||||
static inline int sleep(unsigned int seconds)
|
static inline unsigned sleep(unsigned int seconds)
|
||||||
{
|
{
|
||||||
k_sleep(K_SECONDS(seconds));
|
k_sleep(K_SECONDS(seconds));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue