diff options
author | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-07-21 21:06:49 +0200 |
---|---|---|
committer | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-07-21 21:08:20 +0200 |
commit | 665d4c9b6e3ff5e36439e33dc5a0ee2a7c84ccff (patch) | |
tree | 9911d0e68fb7f38e23678b18dab087acfce97144 /src/tak.c | |
parent | 7021e35029dbbd3b7588c5a334daba582805535a (diff) |
read_file: openOptions
Diffstat (limited to 'src/tak.c')
-rw-r--r-- | src/tak.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |