diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-12-07 01:40:49 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-12-07 01:40:49 -0500 |
commit | fceb4f6292d18e05686f05fcdfc890e65750ab41 (patch) | |
tree | fa8e72512c7544720dbe26a1b37e6d49d316d77c /apps/misc.c | |
parent | 152a2389471bb2aaf0c25acaa2f610feb1b3113c (diff) | |
download | rockbox-fceb4f6292d18e05686f05fcdfc890e65750ab41.tar.gz rockbox-fceb4f6292d18e05686f05fcdfc890e65750ab41.zip |
misc.c format_time_auto() make several const tables static
Change-Id: I597eee8f2d531d4cc2ec69dd8bc78f8cd7950162
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c index 3e93cc9649..327dc5802d 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -1246,14 +1246,14 @@ const char *format_time_auto(char *buffer, int buf_len, long value, | |||
1246 | [UNIT_IDX_SEC] = 4,/* 999.59:59:0 RTL offsets */ | 1246 | [UNIT_IDX_SEC] = 4,/* 999.59:59:0 RTL offsets */ |
1247 | [UNIT_IDX_MS] = 0,/* 0 .4 :7 :10 won't change */ | 1247 | [UNIT_IDX_MS] = 0,/* 0 .4 :7 :10 won't change */ |
1248 | }; /* {10,7,4,0}; Offsets */ | 1248 | }; /* {10,7,4,0}; Offsets */ |
1249 | const uint16_t unitlock[UNIT_IDX_TIME_COUNT] = | 1249 | static const uint16_t unitlock[UNIT_IDX_TIME_COUNT] = |
1250 | { | 1250 | { |
1251 | [UNIT_IDX_HR] = UNIT_LOCK_HR, | 1251 | [UNIT_IDX_HR] = UNIT_LOCK_HR, |
1252 | [UNIT_IDX_MIN] = UNIT_LOCK_MIN, | 1252 | [UNIT_IDX_MIN] = UNIT_LOCK_MIN, |
1253 | [UNIT_IDX_SEC] = UNIT_LOCK_SEC, | 1253 | [UNIT_IDX_SEC] = UNIT_LOCK_SEC, |
1254 | [UNIT_IDX_MS] = 0, | 1254 | [UNIT_IDX_MS] = 0, |
1255 | }; /* unitlock */ | 1255 | }; /* unitlock */ |
1256 | const uint16_t units[UNIT_IDX_TIME_COUNT] = | 1256 | static const uint16_t units[UNIT_IDX_TIME_COUNT] = |
1257 | { | 1257 | { |
1258 | [UNIT_IDX_HR] = UNIT_HOUR, | 1258 | [UNIT_IDX_HR] = UNIT_HOUR, |
1259 | [UNIT_IDX_MIN] = UNIT_MIN, | 1259 | [UNIT_IDX_MIN] = UNIT_MIN, |