]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/reduce_features.c
ccanlint: remove redundant num_lines in struct ccan_file.
[ccan] / tools / ccanlint / tests / reduce_features.c
index 54c26f9736c6a96d3c49e6e0f50eb7379abcc5bb..b46c85fcfef081c685c74f673436f12d39e9ab28 100644 (file)
@@ -83,7 +83,7 @@ static struct htable_option *get_used_options(struct manifest *m)
                        info = get_ccan_line_info(f);
                        struct pp_conditions *prev = NULL;
 
-                       for (i = 0; i < f->num_lines; i++) {
+                       for (i = 0; f->lines[i]; i++) {
                                if (info[i].cond && info[i].cond != prev) {
                                        num += add_options(opts, info[i].cond);
                                        prev = info[i].cond;