summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-22 08:08:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-22 08:08:24 +0200
commit32962a658cbb35c6333e7b63582f3a09dbf911e2 (patch)
tree165a336c20023dfe3be0068a3c6894aa20e5b217 /src/fat_adv.c
parent98d6fb5d1f1cd092c8c083f62b3bac59fd86d39b (diff)
Declare as const some static variables
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index c427886..74f3f2c 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -578,11 +578,11 @@ static unsigned int fat32_find_root_cluster(disk_t *disk_car,const partition_t *
}
#ifdef HAVE_NCURSES
-static int day_n[] = { 0,31,59,90,120,151,181,212,243,273,304,334,0,0,0,0 };
- /* JanFebMarApr May Jun Jul Aug Sep Oct Nov Dec */
static void fat_date_unix2dos(int unix_date,unsigned short *mstime, unsigned short *msdate)
{
+ static const int day_n[] = { 0,31,59,90,120,151,181,212,243,273,304,334,0,0,0,0 };
+ /* JanFebMarApr May Jun Jul Aug Sep Oct Nov Dec */
int day,year,nl_day,month;
/* unix_date -= sys_tz.tz_minuteswest*60; */