From 86e6d7daaa1ed9bcd81326be91caa0d206daa4e5 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 22 Oct 2018 02:24:40 +0300 Subject: Split for_each_line_in_file and make more generic --- src/cli/proc-region-rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli') diff --git a/src/cli/proc-region-rw.c b/src/cli/proc-region-rw.c index 360f7ac..282fa09 100644 --- a/src/cli/proc-region-rw.c +++ b/src/cli/proc-region-rw.c @@ -153,7 +153,7 @@ proc_region_rw(int argc, const char *argv[], bool (*mem_io_init)(struct mem_io*, if (!mem_io_init(&ctx.io, pid)) return EXIT_FAILURE; - for_each_line_in_file(ctx.regions, region_cb, &ctx); + for_each_token_in_file(ctx.regions, '\n', region_cb, &ctx); const size_t trw = ctx.trw; mem_io_release(&ctx.io); -- cgit v1.2.3-70-g09d2