From 711494ad361dcce5075545b5886a5986f88b60ef Mon Sep 17 00:00:00 2001 From: Bert Date: Tue, 6 Sep 2011 09:11:03 +0200 Subject: Avoid conflicting macros --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index e2d2867..8b65c27 100644 --- a/util.c +++ b/util.c @@ -91,9 +91,9 @@ void size_readable(float *size, const char **unit) { const char *units[] = { "", "K", "M", "G" }; int i; - for (i = 0; i < LEN(units) && *size > 1024; i++) + for (i = 0; i < ARRLEN(units) && *size > 1024; i++) *size /= 1024; - *unit = units[MIN(i, LEN(units) - 1)]; + *unit = units[MIN(i, ARRLEN(units) - 1)]; } char* absolute_path(const char *filename) { -- cgit v1.2.3-54-g00ecf