summaryrefslogtreecommitdiffstats
path: root/src/askloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/askloc.c')
-rw-r--r--src/askloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/askloc.c b/src/askloc.c
index 6e24dd3..43b4880 100644
--- a/src/askloc.c
+++ b/src/askloc.c
@@ -217,8 +217,7 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org)
while(1)
{
char current_file[4096];
- struct dirent *dir_entrie;
- dir_entrie=readdir(dir);
+ const struct dirent *dir_entrie=readdir(dir);
if(dir_entrie==NULL)
break;
/* hide filename beginning by '.' except '.' and '..' */