summaryrefslogtreecommitdiffstats
path: root/src/ntfs_io.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-31 17:07:08 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-31 17:07:08 +0100
commit56d98fd7a229c8839a364a8a194c89c8fa650fff (patch)
treefabc87d58b2ea35831496d5f9762f6b64b481072 /src/ntfs_io.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/ntfs_io.c')
-rw-r--r--src/ntfs_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs_io.c b/src/ntfs_io.c
index aa2436e..fb1be2a 100644
--- a/src/ntfs_io.c
+++ b/src/ntfs_io.c
@@ -101,7 +101,7 @@ static s64 ntfs_device_testdisk_io_read(struct ntfs_device *dev, void *buf,
s64 count)
{
my_data_t *my_data=(my_data_t*)dev->d_private;
- if(my_data->disk_car->read(my_data->disk_car,count,buf,my_data->partition->part_offset+my_data->offset))
+ if(my_data->disk_car->pread(my_data->disk_car, buf, count, my_data->partition->part_offset + my_data->offset) != count)
return 0;
my_data->offset+=count;
return count;
@@ -111,7 +111,7 @@ static s64 ntfs_device_testdisk_io_write(struct ntfs_device *dev, const void *bu
s64 count)
{
my_data_t *my_data=(my_data_t*)dev->d_private;
- if(my_data->disk_car->write(my_data->disk_car,count,buf,my_data->partition->part_offset+my_data->offset))
+ if(my_data->disk_car->pwrite(my_data->disk_car, buf, count, my_data->partition->part_offset + my_data->offset) != count)
return 0;
my_data->offset+=count;
return count;