summaryrefslogtreecommitdiffstats
path: root/src/phbf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-06-24 09:02:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-06-24 09:02:09 +0200
commit9ed10c72cde9fd8d2e95c2b170224561690c3dbb (patch)
tree285fb01b8ceca70dab2e4f4264c64180365582a3 /src/phbf.c
parent2a1cd7537367f70a6394b3d8b43dd0b9dfbfb1e4 (diff)
use td_list_entry_const() instead of td_list_entry() when variable is defined as const
Diffstat (limited to 'src/phbf.c')
-rw-r--r--src/phbf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phbf.c b/src/phbf.c
index 3589eba..d00bc3c 100644
--- a/src/phbf.c
+++ b/src/phbf.c
@@ -596,7 +596,7 @@ static bf_status_t photorec_bf_frag(struct ph_param *params, file_recovery_t *fi
extrablock_offset=0;
if(!td_list_empty(&file_recovery->location.list))
{
- const alloc_list_t *element=td_list_entry(file_recovery->location.list.prev, alloc_list_t, list);
+ const alloc_list_t *element=td_list_entry_const(file_recovery->location.list.prev, const alloc_list_t, list);
extrablock_offset=element->end/blocksize*blocksize;
}
/* Get the corresponding search_place */