summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:11:07 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:11:07 +0200
commit8e8265e705606ea2a12b97df9a958141f50360bb (patch)
tree8ecc2fdfec905e2d153fa994523c33def85ded94 /src/fat_adv.c
parente7c591bb3f22b34cee74d1b2a0166c503fb877fa (diff)
constify a few variables
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 1674383..f9be08a 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -203,7 +203,6 @@ static int ask_root_directory(disk_t *disk_car, const partition_t *partition, co
for(i=0,current_file=dir_list;(current_file!=NULL) && (i<offset);current_file=current_file->next,i++);
for(i=offset;(current_file!=NULL) &&((i-offset)<INTER_DIR);i++,current_file=current_file->next)
{
- struct tm *tm_p;
char str[11];
char datestr[80];
wmove(window,8+i-offset,0);
@@ -217,7 +216,7 @@ static int ask_root_directory(disk_t *disk_car, const partition_t *partition, co
waddstr(window, " ");
if(current_file->stat.st_mtime!=0)
{
- tm_p = localtime(&current_file->stat.st_mtime);
+ const struct tm *tm_p=localtime(&current_file->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,