summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-05 09:33:16 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-05 17:48:09 +0100
commitd25a3c749f10647f0b73106f432eb390624cc2e1 (patch)
tree02cd3d9ed75e90a14c40780504b4ccf4abbf411c /source4/ntvfs
parent0fe9980fa08ac488f19086d650646017acaaf6e9 (diff)
downloadsamba-d25a3c749f10647f0b73106f432eb390624cc2e1.tar.gz
samba-d25a3c749f10647f0b73106f432eb390624cc2e1.tar.bz2
samba-d25a3c749f10647f0b73106f432eb390624cc2e1.zip
s4:pvfs_aio: fix compiler warning
metze
Diffstat (limited to 'source4/ntvfs')
-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);