s3: Fix warnings in aio_fork.c
authorVolker Lendecke <vl@samba.org>
Fri, 31 Aug 2012 12:45:08 +0000 (14:45 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 1 Sep 2012 01:33:21 +0000 (03:33 +0200)
source3/modules/vfs_aio_fork.c

index 2ec3d3d537c46830f0dcb8d91b94d063b457430a..3db336f9d5b9da3fa38138ed5e4781398eca043a 100644 (file)
@@ -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) {