summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-22 02:24:40 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-22 02:27:20 +0300
commit86e6d7daaa1ed9bcd81326be91caa0d206daa4e5 (patch)
tree0b0d900089bd177b0ca16b46f21bc3ca8f503709 /src/cli
parent31d2ae8936d48976fcf3a4f017ace6410f27136f (diff)
Split for_each_line_in_file and make more generic
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/proc-region-rw.c2
1 files changed, 1 insertions, 1 deletions
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);