summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_aio.c b/source4/ntvfs/posix/pvfs_aio.c
index 56566e3592..e2028d0017 100644
--- a/source4/ntvfs/posix/pvfs_aio.c
+++ b/source4/ntvfs/posix/pvfs_aio.c
@@ -145,7 +145,7 @@ NTSTATUS pvfs_aio_pwrite(struct ntvfs_request *req, union smb_write *wr,
state = talloc(req, struct pvfs_aio_write_state);
NT_STATUS_HAVE_NO_MEMORY(state);
- io_prep_pwrite(&iocb, f->handle->fd, wr->writex.in.data,
+ io_prep_pwrite(&iocb, f->handle->fd, discard_const(wr->writex.in.data),
wr->writex.in.count, wr->writex.in.offset);
state->ae = tevent_add_aio(req->ctx->event_ctx, req->ctx->event_ctx, &iocb,
pvfs_aio_write_handler, state);