Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 17 21:22:31 CEST 2012 on sn-devel-104
{
struct aio_private_data *pd = (struct aio_private_data *)ioev->data;
- /* ioev->res2 contains the -errno if error. */
- /* ioev->res contains the number of bytes sent/received. */
- if (ioev->res2) {
+ if (ioev->res < 0) {
pd->ret_size = -1;
- pd->ret_errno = -ioev->res2;
+ pd->ret_errno = -ioev->res;
} else {
pd->ret_size = ioev->res;
pd->ret_errno = 0;