From 7280e0a4a020fdb9e89b585c09cfa7e4142700a3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 24 Aug 2010 06:46:29 +0000 Subject: =?UTF-8?q?2010-09-24=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/src/aio_write.c: aio_nbytes is always >= 0. Fix typo in comment. --- cpukit/posix/src/aio_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/aio_write.c b/cpukit/posix/src/aio_write.c index 96f5e58492..03f6b90c64 100644 --- a/cpukit/posix/src/aio_write.c +++ b/cpukit/posix/src/aio_write.c @@ -30,7 +30,7 @@ * aiocbp - asynchronous I/O control block * * Output parameters: - * -1 - request could not pe enqueued + * -1 - request could not be enqueued * - FD not opened for write * - invalid aio_reqprio or aio_offset or * aio_nbytes @@ -51,7 +51,7 @@ aio_write (struct aiocb *aiocbp) if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX) rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp); - if (aiocbp->aio_offset < 0 || aiocbp->aio_nbytes < 0) + if (aiocbp->aio_offset < 0) rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp); req = malloc (sizeof (rtems_aio_request)); -- cgit v1.2.3