summaryrefslogtreecommitdiffstats
path: root/src/psearchn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-08-20 09:26:23 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-08-20 09:26:23 +0200
commitd705bac84f34e4c8d587fb86af794525bc130757 (patch)
tree6a595dc12fe2ab713fdade7fab0b18d7dd77684b /src/psearchn.c
parent828ec27071759b86d3c99468851db0c53e54976e (diff)
Replace td_list_entry by td_list_(first|prev|next|last)_entry to improve readability
Diffstat (limited to 'src/psearchn.c')
-rw-r--r--src/psearchn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psearchn.c b/src/psearchn.c
index dc6bcc3..dfafe3f 100644
--- a/src/psearchn.c
+++ b/src/psearchn.c
@@ -238,7 +238,7 @@ pstatus_t photorec_aux(struct ph_param *params, const struct ph_options *options
previous_time=start_time;
next_checkpoint=start_time+5*60;
memset(buffer_olddata,0,blocksize);
- current_search_space=td_list_entry(list_search_space->list.next, alloc_data_t, list);
+ current_search_space=td_list_first_entry(&list_search_space->list, alloc_data_t, list);
offset=set_search_start(params, &current_search_space, list_search_space);
if(options->verbose > 0)
info_list_search_space(list_search_space, current_search_space, params->disk->sector_size, 0, options->verbose);