diff options
author | alc <alc@FreeBSD.org> | 2002-01-09 06:40:45 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-01-09 06:40:45 +0000 |
commit | 13725ff1d52cc0b417ee537b688d28cce85ea8f2 (patch) | |
tree | 996e0775f2583d2b2f2800666223ffbd714da9e1 /sys/kern/vfs_aio.c | |
parent | c2656ac96b01ac240f679622b1c4064d136439b5 (diff) | |
download | FreeBSD-src-13725ff1d52cc0b417ee537b688d28cce85ea8f2.zip FreeBSD-src-13725ff1d52cc0b417ee537b688d28cce85ea8f2.tar.gz |
o Correct a 32/64-bit error in the initialization of aiol_zone, specifically,
sizeof(int) is not the size of a pointer.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index ef4e731..df715b0 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -315,7 +315,7 @@ aio_onceonly(void) kaio_zone = zinit("AIO", sizeof(struct kaioinfo), 0, 0, 1); aiop_zone = zinit("AIOP", sizeof(struct aiothreadlist), 0, 0, 1); aiocb_zone = zinit("AIOCB", sizeof(struct aiocblist), 0, 0, 1); - aiol_zone = zinit("AIOL", AIO_LISTIO_MAX * sizeof(int), 0, 0, 1); + aiol_zone = zinit("AIOL", AIO_LISTIO_MAX*sizeof(intptr_t), 0, 0, 1); aiolio_zone = zinit("AIOLIO", AIO_LISTIO_MAX * sizeof(struct aio_liojob), 0, 0, 1); aiod_timeout = AIOD_TIMEOUT_DEFAULT; |