summaryrefslogtreecommitdiffstats
path: root/src/askloc.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/askloc.c
parentb5ec147d4663cf73fba8c1fa082aedfda4c09dd4 (diff)
Use TD_INIT_LIST_HEAD() function instead of TD_LIST_HEAD_INIT() static initializer
Diffstat (limited to 'src/askloc.c')
-rw-r--r--src/askloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/askloc.c b/src/askloc.c
index 0a8b5ec..3fe8480 100644
--- a/src/askloc.c
+++ b/src/askloc.c
@@ -178,10 +178,8 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org)
do
{
DIR* dir;
- 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);
wmove(window,5,0);
wclrtoeol(window); /* before addstr for BSD compatibility */
if(has_colors())