summaryrefslogtreecommitdiffstats
path: root/src/jfs.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/jfs.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/jfs.c')
-rw-r--r--src/jfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jfs.c b/src/jfs.c
index 202fa41..868ba3a 100644
--- a/src/jfs.c
+++ b/src/jfs.c
@@ -43,7 +43,7 @@ static int set_JFS_info(disk_t *disk_car, const struct jfs_superblock *sb,partit
int check_JFS(disk_t *disk_car,partition_t *partition,const int verbose)
{
unsigned char *buffer=(unsigned char*)MALLOC(JFS_SUPERBLOCK_SIZE);
- if(disk_car->read(disk_car,JFS_SUPERBLOCK_SIZE, buffer, partition->part_offset+64*512)!=0)
+ if(disk_car->pread(disk_car, buffer, JFS_SUPERBLOCK_SIZE, partition->part_offset + 64 * 512) != JFS_SUPERBLOCK_SIZE)
{
free(buffer);
return 1;