diff options
author | Michael Brown | 2006-12-20 04:14:59 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-20 04:14:59 +0100 |
commit | 637a891264f4f81533e58f1b5ed850324ddfb134 (patch) | |
tree | e55e8a1efd01af1618a75ebeb93f873fb06c4a11 /src/core/misc.c | |
parent | Add (partly-functional) user interface for editing configuration settings (diff) | |
download | ipxe-637a891264f4f81533e58f1b5ed850324ddfb134.tar.gz ipxe-637a891264f4f81533e58f1b5ed850324ddfb134.tar.xz ipxe-637a891264f4f81533e58f1b5ed850324ddfb134.zip |
Fix prototype of sleep() and move it to unistd.h
Diffstat (limited to 'src/core/misc.c')
-rw-r--r-- | src/core/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index c80eacdd..3930d265 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -75,12 +75,13 @@ int32_t random(void) /************************************************************************** SLEEP **************************************************************************/ -void sleep(int secs) +unsigned int sleep(unsigned int secs) { unsigned long tmo; for (tmo = currticks()+secs*TICKS_PER_SEC; currticks() < tmo; ) { } + return 0; } /************************************************************************** @@ -89,7 +90,7 @@ INTERRUPTIBLE SLEEP void interruptible_sleep(int secs) { printf("<sleep>\n"); - return sleep(secs); + sleep(secs); } /************************************************************************** |