summaryrefslogtreecommitdiffstats
path: root/src/parti386.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
commitb849a82750086bdddd127c7d43dd0a7381b3c28e (patch)
treeb7d0fd90e7e93e34455f0c582b2193803bbce4e1 /src/parti386.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parti386.c b/src/parti386.c
index 04e5c7d..02444ac 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -347,7 +347,7 @@ static list_part_t *read_part_i386(disk_t *disk_car, const int verbose, const in
int res=0;
CHS_t geometry;
list_part_t *new_list_part=NULL;
- unsigned char *buffer=MALLOC(disk_car->sector_size);
+ unsigned char *buffer=(unsigned char *)MALLOC(disk_car->sector_size);
screen_buffer_reset();
if(disk_car->read(disk_car,disk_car->sector_size, buffer, (uint64_t)0))
{
@@ -634,8 +634,8 @@ int write_part_i386(disk_t *disk_car, const list_part_t *list_part, const int ro
static int write_mbr_i386(disk_t *disk_car, const list_part_t *list_part, const int ro, const int verbose)
{
const list_part_t *element;
- unsigned char *buffer=MALLOC(disk_car->sector_size);
- unsigned char *buffer_org=MALLOC(disk_car->sector_size);
+ unsigned char *buffer=(unsigned char *)MALLOC(disk_car->sector_size);
+ unsigned char *buffer_org=(unsigned char *)MALLOC(disk_car->sector_size);
if(verbose>0)
{
log_trace("\nwrite_mbr_i386: starting...\n");