summaryrefslogtreecommitdiffstats
path: root/src/dirpart.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-04-10 19:20:53 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-04-10 19:20:53 +0200
commit4968f66059e9ca6d8c48b55460a73bfbc72fd1aa (patch)
tree17fea48cbb7ccf9f6eb54a5557e78129e5cfa0a0 /src/dirpart.c
parentb5ec147d4663cf73fba8c1fa082aedfda4c09dd4 (diff)
Use TD_INIT_LIST_HEAD() function instead of TD_LIST_HEAD_INIT() static initializer
Diffstat (limited to 'src/dirpart.c')
-rw-r--r--src/dirpart.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dirpart.c b/src/dirpart.c
index a070476..3f07ad2 100644
--- a/src/dirpart.c
+++ b/src/dirpart.c
@@ -196,10 +196,8 @@ dir_partition_t dir_partition(disk_t *disk, const partition_t *partition, const
dir_partition_aff(disk, partition, &dir_data, dir_data.current_inode, current_cmd);
#else
{
- file_info_t dir_list = {
- .list = TD_LIST_HEAD_INIT(dir_list.list),
- .name = NULL
- };
+ file_info_t dir_list;
+ TD_INIT_LIST_HEAD(&dir_list.list);
dir_data.get_dir(disk, partition, &dir_data, dir_data.current_inode, &dir_list);
dir_aff_log(&dir_data, &dir_list);
delete_list_file(&dir_list);