(trunk libT) make tr_pwrite()'s "buf" argument const
This commit is contained in:
parent
52ac4cd0b9
commit
872291cd62
|
@ -218,7 +218,7 @@ tr_pread( int fd, void *buf, size_t count, off_t offset )
|
|||
}
|
||||
|
||||
ssize_t
|
||||
tr_pwrite( int fd, void *buf, size_t count, off_t offset )
|
||||
tr_pwrite( int fd, const void *buf, size_t count, off_t offset )
|
||||
{
|
||||
#ifdef HAVE_PWRITE
|
||||
return pwrite( fd, buf, count, offset );
|
||||
|
|
|
@ -40,7 +40,7 @@ void tr_close_file( int fd );
|
|||
|
||||
int64_t tr_lseek( int fd, int64_t offset, int whence );
|
||||
ssize_t tr_pread(int fd, void *buf, size_t count, off_t offset);
|
||||
ssize_t tr_pwrite(int fd, void *buf, size_t count, off_t offset);
|
||||
ssize_t tr_pwrite(int fd, const void *buf, size_t count, off_t offset);
|
||||
int tr_prefetch(int fd, off_t offset, size_t count);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue