summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-11-29 07:40:04 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-11-29 07:40:04 +0100
commitc013ca281dd21ecae068d59870bc9763b3a55787 (patch)
treec7037613bc96c9ec41b0f0a1c23dcfd288b8bee0 /src/phrecn.c
parent4b6c36b87494901b942ce45af8f7d37f88b4202b (diff)
Compilation fix when ncurses is disabled
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 496ef24..4b64a7a 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -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)