summaryrefslogtreecommitdiffstats
path: root/src/netware.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/netware.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/netware.c')
-rw-r--r--src/netware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netware.c b/src/netware.c
index 0732bff..a5fae4f 100644
--- a/src/netware.c
+++ b/src/netware.c
@@ -46,7 +46,7 @@ static int test_netware(disk_t *disk_car, const struct disk_netware *netware_blo
int check_netware(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)!=0)
{
free(buffer);