git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe9980
)
s4:pvfs_aio: fix compiler warning
author
Stefan Metzmacher
<metze@samba.org>
Thu, 5 Feb 2009 08:33:16 +0000
(09:33 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 5 Feb 2009 16:48:09 +0000
(17:48 +0100)
metze
source4/ntvfs/posix/pvfs_aio.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_aio.c
b/source4/ntvfs/posix/pvfs_aio.c
index 56566e35925af363a63f67571af2764d04d87995..e2028d001726bdabc4835c61e7470a6b1741e832 100644
(file)
--- 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);