From 850bc788c3fd4bb96f425ceedfe4237754cabe46 Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Fri, 29 Oct 2021 02:00:53 +0600 Subject: code-style: general cleanups (#137) * tns_clean_cache: remove unused function arg * remove malloc casting * improve consistency use sizeof(T) at the end * avoid comparing integers of different signedness * use Window type for embed and parent * remove unnecessary comparisons * remove cpp style comments * improve consistency: remove comma from the end of enumerator list * Removed useless _IMAGE_CONFIG defines * consistency: use the same order as snprintf * Resolve c89 warnings Co-authored-by: uidops Co-authored-by: Arthur Williams --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index 37b5d10..84297f0 100644 --- a/util.c +++ b/util.c @@ -82,7 +82,7 @@ void error(int eval, int err, const char* fmt, ...) void size_readable(float *size, const char **unit) { const char *units[] = { "", "K", "M", "G" }; - int i; + unsigned int i; for (i = 0; i < ARRLEN(units) && *size > 1024.0; i++) *size /= 1024.0; -- cgit v1.2.3-54-g00ecf