summaryrefslogtreecommitdiffstats
path: root/src/phrecn.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/phrecn.c
parent828ec27071759b86d3c99468851db0c53e54976e (diff)
Replace td_list_entry by td_list_(first|prev|next|last)_entry to improve readability
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 616202f..9057632 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -333,7 +333,7 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
{
ind_stop=PSTATUS_OK;
if(!td_list_empty(&list_search_space->list))
- start_offset=(td_list_entry(list_search_space->list.next, alloc_data_t, list))->start % params->blocksize;
+ start_offset=(td_list_first_entry(&list_search_space->list, alloc_data_t, list))->start % params->blocksize;
}
else
{