summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-07-21 08:06:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-07-21 08:06:49 +0200
commita217bf73ff63bde0b73acfb6232631b7e06e3d8e (patch)
tree659e5c4eef92eabd8df6fec4f8f193c563ba044a /src/photorec.c
parentfbdc01bbc359a38383ce36db1682e0db6c1f4046 (diff)
PhotoRec: use a single parameter to forward the options (code cleanup)
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/photorec.c b/src/photorec.c
index a147c22..7adc6ec 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -692,7 +692,7 @@ int file_finish(file_recovery_t *file_recovery, const char *recup_dir, const int
return file_recovered;
}
-alloc_data_t *file_finish2(file_recovery_t *file_recovery, const char *recup_dir, const int paranoid, unsigned int *file_nbr,
+alloc_data_t *file_finish2(file_recovery_t *file_recovery, const char *recup_dir, const struct ph_options *options, unsigned int *file_nbr,
const unsigned int blocksize, alloc_data_t *list_search_space,
unsigned int *dir_num, const photorec_status_t status, const disk_t *disk)
{
@@ -706,7 +706,7 @@ alloc_data_t *file_finish2(file_recovery_t *file_recovery, const char *recup_dir
{
if(status!=STATUS_EXT2_ON_SAVE_EVERYTHING && status!=STATUS_EXT2_OFF_SAVE_EVERYTHING)
{
- if(file_recovery->file_stat!=NULL && file_recovery->file_check!=NULL && paranoid>0)
+ if(file_recovery->file_stat!=NULL && file_recovery->file_check!=NULL && options->paranoid>0)
{ /* Check if recovered file is valid */
file_recovery->file_check(file_recovery);
}