summaryrefslogtreecommitdiff
path: root/src/tak.c
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 21:06:49 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 21:08:20 +0200
commit665d4c9b6e3ff5e36439e33dc5a0ee2a7c84ccff (patch)
tree9911d0e68fb7f38e23678b18dab087acfce97144 /src/tak.c
parent7021e35029dbbd3b7588c5a334daba582805535a (diff)
read_file: openOptions
Diffstat (limited to 'src/tak.c')
-rw-r--r--src/tak.c6
1 files changed, 3 insertions, 3 deletions
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);