From 43383701cac45ee1fa37bd17111848d88d583492 Mon Sep 17 00:00:00 2001 From: Youvedeep Singh Date: Mon, 26 Mar 2018 18:28:47 +0530 Subject: [PATCH] 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 --- include/posix/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/posix/unistd.h b/include/posix/unistd.h index b789345a5eb..7af86fb5227 100644 --- a/include/posix/unistd.h +++ b/include/posix/unistd.h @@ -20,7 +20,7 @@ extern "C" { * * See IEEE 1003.1 */ -static inline int sleep(unsigned int seconds) +static inline unsigned sleep(unsigned int seconds) { k_sleep(K_SECONDS(seconds)); return 0;