(lwpProc): Change type of member runtime to time_t.

(lwpSleepUntil): Change type of parameter to time_t.
This commit is contained in:
Markus Armbruster 2007-01-28 14:14:40 +00:00
parent 8e6300b620
commit e501656b4a
3 changed files with 6 additions and 4 deletions

View file

@ -123,9 +123,10 @@ lwpWakeupFd(struct lwpProc *proc)
}
void
lwpSleepUntil(long until)
lwpSleepUntil(time_t until)
{
lwpStatus(LwpCurrent, "sleeping for %ld sec", until - time(0));
lwpStatus(LwpCurrent, "sleeping for %ld sec",
(long)(until - time(NULL)));
LwpCurrent->runtime = until;
if (LwpMaxfd == 0 && LwpDelayq.head == 0) {
/* select process is sleeping until first waiter arrives */