diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2012-09-10 22:11:07 +0200 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2012-09-10 22:11:07 +0200 |
commit | 8e8265e705606ea2a12b97df9a958141f50360bb (patch) | |
tree | 8ecc2fdfec905e2d153fa994523c33def85ded94 /src/askloc.c | |
parent | e7c591bb3f22b34cee74d1b2a0166c503fb877fa (diff) |
constify a few variables
Diffstat (limited to 'src/askloc.c')
-rw-r--r-- | src/askloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/askloc.c b/src/askloc.c index 846415f..8ea15c1 100644 --- a/src/askloc.c +++ b/src/askloc.c @@ -550,12 +550,11 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org) static void dir_aff_entry(WINDOW *window, file_info_t *file_info) { - struct tm *tm_p; char str[11]; char datestr[80]; if(file_info->stat.st_mtime!=0) { - tm_p = localtime(&file_info->stat.st_mtime); + const struct tm *tm_p= localtime(&file_info->stat.st_mtime); snprintf(datestr, sizeof(datestr),"%2d-%s-%4d %02d:%02d", tm_p->tm_mday, monstr[tm_p->tm_mon], 1900 + tm_p->tm_year, tm_p->tm_hour, |