[PATCH 25/62] libmisc/redirector/stdio-redirect.c: Use UL constants since usleep() should take more than 16-bit constants

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 15 20:00:15 UTC 2014


---
 cpukit/libmisc/redirector/stdio-redirect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/redirector/stdio-redirect.c b/cpukit/libmisc/redirector/stdio-redirect.c
index 86ecf9f..3f896dd 100644
--- a/cpukit/libmisc/redirector/stdio-redirect.c
+++ b/cpukit/libmisc/redirector/stdio-redirect.c
@@ -259,7 +259,7 @@ rtems_stdio_redirect_close(rtems_stdio_redirect* sr)
 
     while (sr->state & RTEMS_STDIO_REDIRECT_FINISHED)
     {
-      sleep(250);
+      usleep(250UL * 1000000UL);
     }
 
     rtems_stdio_redirect_lock(sr);
-- 
1.9.3




More information about the devel mailing list