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 | |
parent | 152a2389471bb2aaf0c25acaa2f610feb1b3113c (diff) | |
download | rockbox-fceb4f6292.tar.gz rockbox-fceb4f6292.zip |
misc.c format_time_auto() make several const tables static
Change-Id: I597eee8f2d531d4cc2ec69dd8bc78f8cd7950162
-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, [UNIT_IDX_SEC] = 4,/* 999.59:59:0 RTL offsets */ [UNIT_IDX_MS] = 0,/* 0 .4 :7 :10 won't change */ }; /* {10,7,4,0}; Offsets */ - const uint16_t unitlock[UNIT_IDX_TIME_COUNT] = + static const uint16_t unitlock[UNIT_IDX_TIME_COUNT] = { [UNIT_IDX_HR] = UNIT_LOCK_HR, [UNIT_IDX_MIN] = UNIT_LOCK_MIN, [UNIT_IDX_SEC] = UNIT_LOCK_SEC, [UNIT_IDX_MS] = 0, }; /* unitlock */ - const uint16_t units[UNIT_IDX_TIME_COUNT] = + static const uint16_t units[UNIT_IDX_TIME_COUNT] = { [UNIT_IDX_HR] = UNIT_HOUR, [UNIT_IDX_MIN] = UNIT_MIN, |