From 665d4c9b6e3ff5e36439e33dc5a0ee2a7c84ccff Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Sun, 21 Jul 2024 21:06:49 +0200 Subject: read_file: openOptions --- src/tak.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tak.c') diff --git a/src/tak.c b/src/tak.c index c6b6143..cbe5a3b 100644 --- a/src/tak.c +++ b/src/tak.c @@ -68,7 +68,7 @@ int entry_tak(int argc, char **argv) { char **args = parse_options(argc, argv); if (*args == NULL) { - struct filebuf *fb = stream_to_filebuf(stdin); + struct filebuf *fb = stream_to_filebuf(stdin, 0); if (fb == NULL) goto err_stdin; process(fb); @@ -79,11 +79,11 @@ int entry_tak(int argc, char **argv) { struct filebuf *fb = NULL; if (!strcmp(*args, "-")) { - fb = stream_to_filebuf(stdin); + fb = stream_to_filebuf(stdin, 0); if (fb == NULL) goto err_stdin; } - if (fb == NULL) fb = file_to_filebuf(*args); + if (fb == NULL) fb = file_to_filebuf(*args, 0); if (fb == NULL) goto err_file; process(fb); -- cgit v1.2.3-70-g09d2