summaryrefslogtreecommitdiffstats
path: root/src/ewf.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/ewf.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ewf.c b/src/ewf.c
index babe9e1..c4498c5 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -81,7 +81,7 @@ disk_t *fewf_init(const char *device, const int verbose, const arch_fnct_t *arch
#ifdef HAVE_GLOB_H
glob_t globbuf;
#endif
- data=MALLOC(sizeof(*data));
+ data=(struct info_fewf_struct *)MALLOC(sizeof(*data));
data->offset=0;
strncpy(data->file_name,device,sizeof(data->file_name));
data->file_name[sizeof(data->file_name)-1]='\0';
@@ -95,14 +95,14 @@ disk_t *fewf_init(const char *device, const int verbose, const arch_fnct_t *arch
glob(data->file_name, GLOB_DOOFFS, NULL, &globbuf);
if(globbuf.gl_pathc>0)
{
- filenames=MALLOC(globbuf.gl_pathc * sizeof(*filenames));
+ filenames=(char **)MALLOC(globbuf.gl_pathc * sizeof(*filenames));
for (num_files=0; num_files<globbuf.gl_pathc; num_files++) {
filenames[num_files]=globbuf.gl_pathv[num_files];
}
}
}
#else
- filenames=MALLOC(1*sizeof(*filenames));
+ filenames=(char **)MALLOC(1*sizeof(*filenames));
filenames[num_files] = data->file_name;
num_files++;
#endif /*HAVE_GLOB_H*/