summaryrefslogtreecommitdiffstats
path: root/src/rfs.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/rfs.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/rfs.c')
-rw-r--r--src/rfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfs.c b/src/rfs.c
index 19efd7c..f616935 100644
--- a/src/rfs.c
+++ b/src/rfs.c
@@ -47,7 +47,7 @@ static int set_rfs4_info(const disk_t *disk_car, const struct reiser4_master_sb*
int check_rfs(disk_t *disk_car,partition_t *partition,const int verbose)
{
unsigned char *buffer=(unsigned char*)MALLOC(REISERFS_SUPER_BLOCK_SIZE);
- if(disk_car->read(disk_car,REISERFS_SUPER_BLOCK_SIZE, buffer, partition->part_offset+128*512)!=0) /* 64k offset */
+ if(disk_car->pread(disk_car, buffer, REISERFS_SUPER_BLOCK_SIZE, partition->part_offset + 128 * 512) != REISERFS_SUPER_BLOCK_SIZE) /* 64k offset */
{
free(buffer);
return 1;