]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_coverage.c
tools: use rbuf instead of grab_file.
[ccan] / tools / ccanlint / tests / tests_coverage.c
index 3d5216ffebd9495568b9045d4d5c3e9eca42cc06..f5e9f04349077b61c1092f167c1d3034afb8b8d2 100644 (file)
@@ -2,7 +2,6 @@
 #include <tools/tools.h>
 #include <ccan/talloc/talloc.h>
 #include <ccan/str_talloc/str_talloc.h>
-#include <ccan/grab_file/grab_file.h>
 #include <ccan/str/str.h>
 #include <ccan/foreach/foreach.h>
 #include <sys/types.h>
@@ -101,7 +100,7 @@ static void analyze_coverage(struct manifest *m, bool full_gcov,
                        apostrophe = strchr(filename, '\'');
                        *apostrophe = '\0';
                        if (lines_matter) {
-                               file = grab_file(score, filename, NULL);
+                               file = talloc_grab_file(score, filename, NULL);
                                if (!file) {
                                        score->error = talloc_asprintf(score,
                                                            "Reading %s",