summaryrefslogtreecommitdiffstats
path: root/src/partmac.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/partmac.c
parent9970a484b6983cbf5659ebf17335b4192065025e (diff)
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/partmac.c')
-rw-r--r--src/partmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partmac.c b/src/partmac.c
index 91765bc..609f3d6 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -119,7 +119,7 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
unsigned int i;
unsigned int limit=1;
screen_buffer_reset();
- if(disk_car->read(disk_car,sizeof(buffer), &buffer, 0)!=0)
+ if(disk_car->pread(disk_car, &buffer, sizeof(buffer), 0) != sizeof(buffer))
return NULL;
{
mac_Block0 *maclabel=(mac_Block0*)&buffer;
@@ -133,7 +133,7 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
for(i=1;i<=limit;i++)
{
mac_DPME *dpme=(mac_DPME *)buffer;
- if(disk_car->read(disk_car,sizeof(buffer), &buffer, (uint64_t)i*PBLOCK_SIZE)!=0)
+ if(disk_car->pread(disk_car, &buffer, sizeof(buffer), (uint64_t)i * PBLOCK_SIZE) != sizeof(buffer))
return new_list_part;
if(be16(dpme->dpme_signature) != DPME_SIGNATURE)
{