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:
Youvedeep Singh 2018-03-26 18:28:47 +05:30 committed by Anas Nashif
commit 43383701ca

View file

@ -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;