diff options
author | Christophe Grenier <[email protected]> | 2015-06-24 09:02:09 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2015-06-24 09:02:09 +0200 |
commit | 9ed10c72cde9fd8d2e95c2b170224561690c3dbb (patch) | |
tree | 285fb01b8ceca70dab2e4f4264c64180365582a3 /src/dfxml.c | |
parent | 2a1cd7537367f70a6394b3d8b43dd0b9dfbfb1e4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfxml.c b/src/dfxml.c index c9f48038..654cc7da 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; |