stat_line_valid(): use the FOR_EACH_STAT_ITEM macro
[paraslash.git] / stat.c
diff --git a/stat.c b/stat.c
index ac5fe8c..536807d 100644 (file)
--- 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);