From: Andre Date: Sun, 26 Mar 2006 23:23:42 +0000 (+0200) Subject: stat_line_valid(): use the FOR_EACH_STAT_ITEM macro X-Git-Tag: v0.2.12~129 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=466c0d2b45c100b4b3caeb4c8b476bba21dcd00b stat_line_valid(): use the FOR_EACH_STAT_ITEM macro --- diff --git a/stat.c b/stat.c index ac5fe8c8..536807dc 100644 --- a/stat.c +++ b/stat.c @@ -216,7 +216,7 @@ int stat_line_valid(const char *line) if (!line || !*line) return -E_UNKNOWN_STAT_ITEM; line_len = strlen(line); - for (i = 0; i < NUM_STAT_ITEMS; i++) { + FOR_EACH_STAT_ITEM(i) { const char *s = status_item_list[i]; size_t item_len = strlen(s);