summaryrefslogtreecommitdiffstats
path: root/src/ewf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-02-25 12:34:37 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-02-25 12:34:37 +0100
commit2832afabc78c0f0807d67ca66366f962d39877c8 (patch)
tree619894e3ec3f8384ff25b783ff3881703a1caa59 /src/ewf.c
parent70cdc4ed1b21de9a402b32cd668c520312a20264 (diff)
Improve default partition table selection
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 61a65bf..dd67599 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -72,6 +72,8 @@
#include "log.h"
#include "hdaccess.h"
+extern const arch_fnct_t arch_none;
+
static const char *fewf_description(disk_t *disk);
static const char *fewf_description_short(disk_t *disk);
static int fewf_clean(disk_t *disk);
@@ -94,7 +96,7 @@ struct info_fewf_struct
unsigned int buffer_size;
};
-disk_t *fewf_init(const char *device, const arch_fnct_t *arch, const int mode)
+disk_t *fewf_init(const char *device, const int mode)
{
unsigned int num_files=0;
char **filenames= NULL;
@@ -217,7 +219,7 @@ disk_t *fewf_init(const char *device, const arch_fnct_t *arch, const int mode)
#endif
disk=(disk_t *)MALLOC(sizeof(*disk));
init_disk(disk);
- disk->arch=arch;
+ disk->arch=&arch_none;
disk->device=strdup(device);
disk->data=data;
disk->description=fewf_description;