summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:20:06 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:20:06 +0100
commit8abc660f79188ecbd6eb4a4842e8cf839b3c37de (patch)
treef02798b068e1ca64199ee5141c13930f32da705c /src/phmain.c
parent8f99c2dbed7a3685dc223c2ee639cab1e3c5ffab (diff)
PhotoRec: when no partition table is found, default to none
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 226fdda..d9ffbf1 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -78,9 +78,7 @@
#include "ext2_dir.h"
#include "ntfs_dir.h"
#include "pdisksel.h"
-extern const arch_fnct_t arch_i386;
-extern const arch_fnct_t arch_mac;
-extern const arch_fnct_t arch_sun;
+extern const arch_fnct_t arch_none;
extern file_enable_t list_file_enable[];
#ifdef HAVE_SIGACTION
@@ -114,13 +112,7 @@ int main( int argc, char **argv )
char *cmd_device=NULL;
char *cmd_run=NULL;
const char *logfile="photorec.log";
-#ifdef TARGET_SOLARIS
- const arch_fnct_t *arch=&arch_sun;
-#elif defined __APPLE__
- const arch_fnct_t *arch=&arch_mac;
-#else
- const arch_fnct_t *arch=&arch_i386;
-#endif
+ const arch_fnct_t *arch=&arch_none;
FILE *log_handle=NULL;
/* random (weak is ok) is need fot GPT */
srand(time(NULL));