--- libaitio/src/aio.c 2012/04/02 09:10:30 1.4.2.1 +++ libaitio/src/aio.c 2012/08/01 08:51:00 1.5.14.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aio.c,v 1.4.2.1 2012/04/02 09:10:30 misho Exp $ +* $Id: aio.c,v 1.5.14.1 2012/08/01 08:51:00 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -66,7 +66,7 @@ io_rread(int fd, void * __restrict buf, size_t nbytes, #endif if (!buf) { - io_SetErr(EINVAL, "Error:: invalid arguments ...\n"); + io_SetErr(EINVAL, "Invalid arguments"); return -1; } if (!nbytes) @@ -107,8 +107,8 @@ io_rread(int fd, void * __restrict buf, size_t nbytes, if (ret == -1) { LOGERR; return -1; - } else - ret = acb.aio_nbytes; + } /*else + ret = acb.aio_nbytes;*/ #else ret = pread(fd, buf, nbytes, offset); if (ret == -1) { @@ -142,7 +142,7 @@ io_rwrite(int fd, void * __restrict buf, size_t nbytes #endif if (!buf) { - io_SetErr(EINVAL, "Error:: invalid arguments ...\n"); + io_SetErr(EINVAL, "Invalid arguments"); return -1; } if (!nbytes) @@ -172,8 +172,8 @@ io_rwrite(int fd, void * __restrict buf, size_t nbytes if (ret == -1) { LOGERR; return -1; - } else - ret = acb.aio_nbytes; + } /*else + ret = acb.aio_nbytes;*/ #else ret = pwrite(fd, buf, nbytes, offset); if (ret == -1) {