diff options
author | root <root> | 2010-09-13 01:59:05 +0000 |
---|---|---|
committer | root <root> | 2010-09-13 01:59:05 +0000 |
commit | c70a5ca0aaae31cbb3948c9c37bf66000320fa4e (patch) | |
tree | d9f44a17916e5d3790933623d656d388fac17d22 | |
parent | 4a8a84bcfe982d119e9079d6e6cadce9d4ad93f8 (diff) |
*** empty log message ***
-rw-r--r-- | eio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |