stat_line_valid(): use the FOR_EACH_STAT_ITEM macro
authorAndre <maan@p133.(none)>
Sun, 26 Mar 2006 23:23:42 +0000 (01:23 +0200)
committerAndre <maan@p133.(none)>
Sun, 26 Mar 2006 23:23:42 +0000 (01:23 +0200)
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);