aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 620cc41..51ee707 100644
--- a/main.c
+++ b/main.c
@@ -25,7 +25,7 @@ int main(int argc, const char *argv[]) {
/* If the filename is the special case of -, we emit stdin */
if (strncmp(argv[i], "-", 1) == 0) {
- if (cfd(0, buf) == -1) {
+ if (cfp(stdin, buf) == -1) {
exv = EXIT_FAILURE;
}
@@ -40,7 +40,7 @@ int main(int argc, const char *argv[]) {
/* If there were no arguments, we assume the user wants us to read from
* stdin, which should already be opened */
} else {
- if (cfd(0, buf) == -1) {
+ if (cfp(stdin, buf) == -1) {
exv = EXIT_FAILURE;
}
}