From: Volker Lendecke Date: Fri, 31 Aug 2012 12:45:08 +0000 (+0200) Subject: s3: Fix warnings in aio_fork.c X-Git-Tag: samba-4.0.0rc1~292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0a9180ae9dd565e4772ba9027ade0edfe1fc8d8;p=thirdparty%2Fsamba.git s3: Fix warnings in aio_fork.c --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 2ec3d3d537c..3db336f9d5b 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -590,9 +590,10 @@ static struct tevent_req *aio_fork_pread_send(struct vfs_handle_struct *handle, ssize_t written; int err; struct aio_fork_config *config; + SMB_VFS_HANDLE_GET_DATA(handle, config, struct aio_fork_config, - return -1); + return NULL); req = tevent_req_create(mem_ctx, &state, struct aio_fork_pread_state); if (req == NULL) { @@ -821,9 +822,10 @@ static struct tevent_req *aio_fork_fsync_send( ssize_t written; int err; struct aio_fork_config *config; + SMB_VFS_HANDLE_GET_DATA(handle, config, struct aio_fork_config, - return -1); + return NULL); req = tevent_req_create(mem_ctx, &state, struct aio_fork_fsync_state); if (req == NULL) {