summaryrefslogtreecommitdiffstats
path: root/src/dfxml.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/dfxml.c
parent2a1cd7537367f70a6394b3d8b43dd0b9dfbfb1e4 (diff)
use td_list_entry_const() instead of td_list_entry() when variable is defined as const
Diffstat (limited to 'src/dfxml.c')
-rw-r--r--src/dfxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfxml.c b/src/dfxml.c
index c9f4803..654cc7d 100644
--- a/src/dfxml.c
+++ b/src/dfxml.c
@@ -317,7 +317,7 @@ void xml_log_file_recovered(const file_recovery_t *file_recovery)
xml_push("byte_runs", "");
td_list_for_each(tmp, &file_recovery->location.list)
{
- const alloc_list_t *element=td_list_entry(tmp, alloc_list_t, list);
+ const alloc_list_t *element=td_list_entry_const(tmp, const alloc_list_t, list);
if(element->data>0)
{
const uint64_t len=element->end - element->start + 1;