From d25a3c749f10647f0b73106f432eb390624cc2e1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 5 Feb 2009 09:33:16 +0100 Subject: s4:pvfs_aio: fix compiler warning metze --- source4/ntvfs/posix/pvfs_aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/ntvfs/posix') 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); -- cgit