Commit f11967da authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: fix 32-bit aio

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent 39dd9103
...@@ -446,7 +446,7 @@ static ssize_t aio_pread(int fd, void *buf, size_t nbytes, off_t offset) ...@@ -446,7 +446,7 @@ static ssize_t aio_pread(int fd, void *buf, size_t nbytes, off_t offset)
{ {
aio_cb.aio_lio_opcode = IOCB_CMD_PREAD; aio_cb.aio_lio_opcode = IOCB_CMD_PREAD;
aio_cb.aio_fildes = fd; aio_cb.aio_fildes = fd;
aio_cb.aio_buf = (unsigned long long) buf; aio_cb.aio_buf = (unsigned long) buf;
aio_cb.aio_nbytes = nbytes; aio_cb.aio_nbytes = nbytes;
aio_cb.aio_offset = offset; aio_cb.aio_offset = offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment