summaryrefslogtreecommitdiffstats
path: root/src/dirn.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/dirn.c
parent2a1cd7537367f70a6394b3d8b43dd0b9dfbfb1e4 (diff)
use td_list_entry_const() instead of td_list_entry() when variable is defined as const
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dirn.c b/src/dirn.c
index 247a78f..df52c81 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -126,7 +126,7 @@ static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_
file_walker!=&dir_list->list && (i-offset)<INTER_DIR;
file_walker=file_walker->next,i++)
{
- const file_info_t *current_file=td_list_entry(file_walker, file_info_t, list);
+ const file_info_t *current_file=td_list_entry_const(file_walker, const file_info_t, list);
char str[11];
char datestr[80];
wmove(window, 6+i-offset, 0);