summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.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/fnctdsk.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index 82c9c1c..f0185c0 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -421,7 +421,7 @@ unsigned int get_geometry_from_list_part(const disk_t *disk_car, const list_part
unsigned int nbr;
unsigned int h_index=0;
unsigned int head_max=disk_car->CHS.head;
- disk_t *new_disk_car=MALLOC(sizeof(*new_disk_car));
+ disk_t *new_disk_car=(disk_t *)MALLOC(sizeof(*new_disk_car));
memcpy(new_disk_car,disk_car,sizeof(*new_disk_car));
nbr_max=get_geometry_from_list_part_aux(new_disk_car, list_part, verbose);
for(h_index=0;head_list[h_index]!=0;h_index++)