summaryrefslogtreecommitdiffstats
path: root/src/askloc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
commit8ab840414394e1e8454413485c578d75fd8ab68f (patch)
tree4d7cb333d48e5cd71bdcde328db0bff816d8f988 /src/askloc.c
parent7ff26a5fcd838b0ac9d6a3a4e82f802d0b752d81 (diff)
Constify some variables
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 '..' */