(trunk libT) make tr_pwrite()'s "buf" argument const

This commit is contained in:
Charles Kerr 2010-05-22 00:09:36 +00:00
parent 52ac4cd0b9
commit 872291cd62
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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);