summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
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; */