summaryrefslogtreecommitdiffstats
path: root/src/lvm.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/lvm.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/lvm.c')
-rw-r--r--src/lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lvm.c b/src/lvm.c
index c36ae02..cbb883a 100644
--- a/src/lvm.c
+++ b/src/lvm.c
@@ -126,7 +126,7 @@ static int set_LVM_info(partition_t *partition, const pv_disk_t *pv)
int check_LVM2(disk_t *disk_car,partition_t *partition,const int verbose)
{
- unsigned char *buffer=MALLOC(DEFAULT_SECTOR_SIZE);
+ unsigned char *buffer=(unsigned char *)MALLOC(DEFAULT_SECTOR_SIZE);
if(disk_car->read(disk_car,DEFAULT_SECTOR_SIZE, buffer, partition->part_offset+0x200)!=0)
{
free(buffer);