summaryrefslogtreecommitdiffstats
path: root/src/phmain.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/phmain.c
parent70cdc4ed1b21de9a402b32cd668c520312a20264 (diff)
Improve default partition table selection
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 9cb9dc4..cdbbcf0 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -78,7 +78,6 @@
#include "pdisksel.h"
#include "dfxml.h"
-extern const arch_fnct_t arch_none;
extern file_enable_t list_file_enable[];
#ifdef HAVE_SIGACTION
@@ -109,7 +108,6 @@ int main( int argc, char **argv )
list_disk_t *list_disk=NULL;
list_disk_t *element_disk;
const char *logfile="photorec.log";
- const arch_fnct_t *arch=&arch_none;
FILE *log_handle=NULL;
struct ph_options options={
.paranoid=1,
@@ -201,7 +199,7 @@ int main( int argc, char **argv )
params.cmd_device=argv[++i];
params.cmd_run=argv[++i];
/* There is no log currently */
- disk_car=file_test_availability(params.cmd_device, options.verbose, arch, testdisk_mode);
+ disk_car=file_test_availability(params.cmd_device, options.verbose, testdisk_mode);
if(disk_car==NULL)
{
printf("\nUnable to open file or device %s\n", params.cmd_device);
@@ -213,7 +211,7 @@ int main( int argc, char **argv )
}
else
{
- disk_t *disk_car=file_test_availability(argv[i], options.verbose, arch, testdisk_mode);
+ disk_t *disk_car=file_test_availability(argv[i], options.verbose, testdisk_mode);
if(disk_car==NULL)
{
printf("\nUnable to open file or device %s\n",argv[i]);
@@ -325,7 +323,7 @@ int main( int argc, char **argv )
screen_buffer_reset();
/* Scan for available device only if no device or image has been supplied in parameter */
if(list_disk==NULL)
- list_disk=hd_parse(list_disk, options.verbose, arch, testdisk_mode);
+ list_disk=hd_parse(list_disk, options.verbose, testdisk_mode);
hd_update_all_geometry(list_disk, options.verbose);
/* Activate the cache, even if photorec has its own */
for(element_disk=list_disk;element_disk!=NULL;element_disk=element_disk->next)