Compilation fix when ncurses is disabled

This commit is contained in:
Christophe Grenier 2010-11-29 07:40:04 +01:00
parent 4b6c36b874
commit c013ca281d
2 changed files with 7 additions and 1 deletions

View file

@ -59,6 +59,7 @@
#define INTER_DISK_X 0
#define INTER_DISK_Y (8+NBR_DISK_MAX)
#define INTER_NOTE_Y (LINES-4)
#endif
static int photorec_disk_selection_cli(int verbose, const char *recup_dir, const list_disk_t *list_disk, file_enable_t *file_enable, alloc_data_t *list_search_space, const char *cmd_device, char **current_cmd)
{
@ -95,6 +96,7 @@ static int photorec_disk_selection_cli(int verbose, const char *recup_dir, const
return 0;
}
#ifdef HAVE_NCURSES
static int photorec_disk_selection_ncurses(int verbose, const char *recup_dir, const list_disk_t *list_disk, file_enable_t *file_enable, alloc_data_t *list_search_space)
{
char * current_cmd=NULL;

View file

@ -849,13 +849,17 @@ int photorec(disk_t *disk_car, partition_t *partition, const int verbose, const
if(session_save(list_search_space, disk_car, partition, files_enable, blocksize, paranoid, keep_corrupted_file, mode_ext2, expert, lowmem, carve_free_space_only, verbose)<0)
{
/* Failed to save the session! */
#ifdef HAVE_NCURSES
if(ask_confirmation("PhotoRec has been unable to save its session status. Answer Y to really Quit, N to resume the recovery")!=0)
status=STATUS_QUIT;
#endif
}
else
{
#ifdef HAVE_NCURSES
if(ask_confirmation("Answer Y to really Quit, N to resume the recovery")!=0)
status=STATUS_QUIT;
status=STATUS_QUIT;
#endif
}
}
else if(paranoid>0)