summaryrefslogtreecommitdiffstats
path: root/src/phnc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-14 12:20:36 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-14 12:20:36 +0200
commitc7b9d467f0a5eac82a4edaa35af8a7c36798bfcb (patch)
tree5b203aa4b82dea690b4015aa0f670753110e510e /src/phnc.c
parentdfb2b013aa42ee4661212ade7e76e85a03cab45c (diff)
code cleanup: new enum type pstatus_t
Diffstat (limited to 'src/phnc.c')
-rw-r--r--src/phnc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phnc.c b/src/phnc.c
index 855c350..8ac4e9c 100644
--- a/src/phnc.c
+++ b/src/phnc.c
@@ -96,7 +96,7 @@ void photorec_info(WINDOW *window, const file_stat_t *file_stats)
free(new_file_stats);
}
-int photorec_progressbar(WINDOW *window, const unsigned int pass, const struct ph_param *params, const uint64_t offset, const time_t current_time)
+pstatus_t photorec_progressbar(WINDOW *window, const unsigned int pass, const struct ph_param *params, const uint64_t offset, const time_t current_time)
{
const partition_t *partition=params->partition;
const unsigned int sector_size=params->disk->sector_size;
@@ -138,6 +138,6 @@ int photorec_progressbar(WINDOW *window, const unsigned int pass, const struct p
}
photorec_info(window, params->file_stats);
wrefresh(window);
- return check_enter_key_or_s(window);
+ return(check_enter_key_or_s(window)==0?PSTATUS_OK:PSTATUS_STOP);
}
#endif