summaryrefslogtreecommitdiffstats
path: root/src/ext2grp.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/ext2grp.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/ext2grp.c')
-rw-r--r--src/ext2grp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext2grp.c b/src/ext2grp.c
index 61d421e..4e40bbd 100644
--- a/src/ext2grp.c
+++ b/src/ext2grp.c
@@ -57,7 +57,7 @@ unsigned int ext2_fix_group(alloc_data_t *list_search_space, disk_t *disk, parti
}
buffer=(unsigned char*)MALLOC(EXT2_SUPERBLOCK_SIZE);
- if(disk->read(disk,EXT2_SUPERBLOCK_SIZE, buffer, partition->part_offset+0x400)!=0)
+ if(disk->pread(disk, buffer, EXT2_SUPERBLOCK_SIZE, partition->part_offset + 0x400) != EXT2_SUPERBLOCK_SIZE)
{
free(buffer);
return 0;
@@ -94,7 +94,7 @@ unsigned int ext2_fix_inode(alloc_data_t *list_search_space, disk_t *disk, parti
}
buffer=(unsigned char*)MALLOC(EXT2_SUPERBLOCK_SIZE);
- if(disk->read(disk,EXT2_SUPERBLOCK_SIZE, buffer, partition->part_offset+0x400)!=0)
+ if(disk->pread(disk, buffer, EXT2_SUPERBLOCK_SIZE, partition->part_offset + 0x400) != EXT2_SUPERBLOCK_SIZE)
{
free(buffer);
return 0;