summaryrefslogtreecommitdiffstats
path: root/src/win32.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/win32.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32.c b/src/win32.c
index 9e1173a..072276e 100644
--- a/src/win32.c
+++ b/src/win32.c
@@ -310,7 +310,7 @@ disk_t *file_test_availability_win32(const char *device, const int verbose, cons
init_disk(disk_car);
disk_car->arch=arch;
disk_car->device=strdup(device);
- data=MALLOC(sizeof(*data));
+ data=(struct info_file_win32_struct *)MALLOC(sizeof(*data));
data->handle=handle;
data->mode=mode;
disk_car->data=data;
@@ -402,7 +402,7 @@ static int file_win32_clean(disk_t *disk_car)
static unsigned int file_win32_compute_sector_size(HANDLE handle)
{
- char *buffer=MALLOC(4096);
+ char *buffer=(char *)MALLOC(4096);
unsigned int sector_size;
for(sector_size=512;sector_size<=4096;sector_size*=2)
{