diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-05 10:41:59 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-05 10:41:59 -0700 |
commit | 4f41be356a4e6b311d30de3b2e36e4c33aa72ca3 (patch) | |
tree | 91adb9035c762c36a6cb24f242c11408779bd3f7 /source3/smbd/aio.c | |
parent | 10a628b6e181af07f0c43db36ba017411b4eaaaa (diff) | |
download | samba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.tar.gz samba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.tar.bz2 samba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.zip |
Fix many const compiler warnings.
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 0cb94acece..1923c945a8 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -251,7 +251,7 @@ NTSTATUS schedule_aio_read_and_X(connection_struct *conn, NTSTATUS schedule_aio_write_and_X(connection_struct *conn, struct smb_request *smbreq, - files_struct *fsp, char *data, + files_struct *fsp, const char *data, SMB_OFF_T startpos, size_t numtowrite) { @@ -329,7 +329,7 @@ NTSTATUS schedule_aio_write_and_X(connection_struct *conn, /* Now set up the aio record for the write call. */ a->aio_fildes = fsp->fh->fd; - a->aio_buf = data; + a->aio_buf = discard_const_p(char, data); a->aio_nbytes = numtowrite; a->aio_offset = startpos; a->aio_sigevent.sigev_notify = SIGEV_SIGNAL; |