From fceb4f6292d18e05686f05fcdfc890e65750ab41 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 7 Dec 2022 01:40:49 -0500 Subject: [PATCH] misc.c format_time_auto() make several const tables static Change-Id: I597eee8f2d531d4cc2ec69dd8bc78f8cd7950162 --- apps/misc.c | 4 ++-- 1 file 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,