From b490cc72b2d3b2d18c9675c4adbb46de4e811408 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 7 Jun 2005 05:28:21 +0000 Subject: [PATCH] In lio_listio(2) change jobref from an int to a long so that lio_listio(LIO_WAIT, ...) works correctly on 64-bit architectures. Reviewed by: tegge --- sys/kern/vfs_aio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 86998bb1963..7cae398f963 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -2015,7 +2015,8 @@ lio_listio(struct thread *td, struct lio_listio_args *uap) runningcode = EIO; if (uap->mode == LIO_WAIT) { - int command, found, jobref; + int command, found; + long jobref; for (;;) { found = 0;