From d258edbb4fef8a187ad4ef8c3d2c072f9ccad83a Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 22 Dec 2018 14:31:40 -0600 Subject: [PATCH] Fix Auto Ranged Time Fix Red for Database Change-Id: I8f4edc4ca84792f977ea673d2435e15f7e2da14e --- apps/misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/misc.c b/apps/misc.c index c93bf3caf3..90865859cf 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1111,7 +1111,8 @@ char* skip_whitespace(char* const str) return s; } -#ifndef CHECKWPS + +#if !defined(CHECKWPS) && !defined(DBTOOL) /* time_split_units() split time values depending on base unit unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS @@ -1337,7 +1338,8 @@ void format_time(char* buf, int buf_size, long t) t < 0, "-", units_in[UNIT_IDX_HR], hashours, ":", hashours+1, units_in[UNIT_IDX_MIN], units_in[UNIT_IDX_SEC]); } -#endif /* !defined(CHECKWPS) */ +#endif /* !defined(CHECKWPS) && !defined(DBTOOL)*/ + /** * Splits str at each occurence of split_char and puts the substrings into vector, * but at most vector_lenght items. Empty substrings are ignored.