diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-01 17:22:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-11-01 19:41:07 +0100 |
commit | ab0561f3c39b2d10cc7d82940c9ec4bd7e4e16f8 (patch) | |
tree | 0503e0d76b2daa7c9a4a3b22c337cf09d55502e4 /source3/smbd/blocking.c | |
parent | 63da08d00fdec52a7384b8c3d6a6c6dee3ace7a7 (diff) | |
download | samba-ab0561f3c39b2d10cc7d82940c9ec4bd7e4e16f8.tar.gz samba-ab0561f3c39b2d10cc7d82940c9ec4bd7e4e16f8.tar.bz2 samba-ab0561f3c39b2d10cc7d82940c9ec4bd7e4e16f8.zip |
Apply some const to get_lock_*()
Diffstat (limited to 'source3/smbd/blocking.c')
-rw-r--r-- | source3/smbd/blocking.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index 4374b50eac..14ce237ab8 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -335,10 +335,11 @@ static void reply_lockingX_error(blocking_lock_record *blr, NTSTATUS status) uint32 lock_pid; unsigned char locktype = CVAL(inbuf,smb_vwv3); bool large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES); - char *data; + uint8_t *data; int i; - data = smb_buf(inbuf) + ((large_file_format ? 20 : 10)*num_ulocks); + data = (uint8_t *)smb_buf(inbuf) + + ((large_file_format ? 20 : 10)*num_ulocks); /* * Data now points at the beginning of the list @@ -423,10 +424,11 @@ static bool process_lockingX(blocking_lock_record *blr) uint64_t count = (uint64_t)0, offset = (uint64_t)0; uint32 lock_pid; bool large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES); - char *data; + uint8_t *data; NTSTATUS status = NT_STATUS_OK; - data = smb_buf(inbuf) + ((large_file_format ? 20 : 10)*num_ulocks); + data = (uint8_t *)smb_buf(inbuf) + + ((large_file_format ? 20 : 10)*num_ulocks); /* * Data now points at the beginning of the list |