summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-01-05 15:06:34 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-01-05 15:06:34 +0100
commitc97811941d9338f79b53d3af273938b5d17452dd (patch)
tree526cff26284c95f379794a4c17b918a8d388d66d /src/photorec.c
parentedecaf2d59cabfe3f6b961a346259069567549b8 (diff)
new prototype for file_finish2()
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/photorec.c b/src/photorec.c
index cc8892d..3a8f181 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -622,7 +622,7 @@ int file_finish(file_recovery_t *file_recovery, struct ph_param *params,
if(file_recovery->file_stat==NULL)
return 0;
if(file_recovery->handle)
- file_finish_aux(file_recovery, params, 1);
+ file_finish_aux(file_recovery, params, 2);
if(file_recovery->file_size==0)
{
list_truncate(&file_recovery->location,file_recovery->file_size);
@@ -661,12 +661,12 @@ int file_finish(file_recovery_t *file_recovery, struct ph_param *params,
0: file not recovered
1: file recovered
*/
-int file_finish2(file_recovery_t *file_recovery, struct ph_param *params, const struct ph_options *options, alloc_data_t *list_search_space)
+int file_finish2(file_recovery_t *file_recovery, struct ph_param *params, const int paranoid, alloc_data_t *list_search_space)
{
if(file_recovery->file_stat==NULL)
return 0;
if(file_recovery->handle)
- file_finish_aux(file_recovery, params, options->paranoid);
+ file_finish_aux(file_recovery, params, paranoid);
if(file_recovery->file_size==0)
{
file_block_truncate_zero(file_recovery, list_search_space);