From c70a5ca0aaae31cbb3948c9c37bf66000320fa4e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Sep 2010 01:59:05 +0000 Subject: *** empty log message *** --- eio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eio.c b/eio.c index fc64b68..0d30ce7 100644 --- a/eio.c +++ b/eio.c @@ -1437,7 +1437,7 @@ eio__mlock (void *addr, size_t length) { eio_page_align (&addr, &length); - mlock (addr, length); + return mlock (addr, length); } static int @@ -1456,7 +1456,7 @@ eio__mlockall (int flags) | (flags & EIO_MCL_FUTURE ? MCL_FUTURE : 0); } - mlockall (flags); + return mlockall (flags); } #endif @@ -1693,13 +1693,13 @@ static void eio_execute (etp_worker *self, eio_req *req) case EIO_BUSY: #ifdef _WIN32 - Sleep (req->nv1 * 1000.); + Sleep (req->nv1 * 1e3); #else { struct timeval tv; tv.tv_sec = req->nv1; - tv.tv_usec = (req->nv1 - tv.tv_sec) * 1000000.; + tv.tv_usec = (req->nv1 - tv.tv_sec) * 1e6; req->result = select (0, 0, 0, 0, &tv); } -- cgit v1.2.3