aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 89e0b18..d526bae 100644
--- a/main.c
+++ b/main.c
@@ -37,12 +37,10 @@ main(int argc, char *argv[])
if (argc > 1)
usage();
- if (argc == 1 && !freopen(argv[0], "r", stdin))
- fatal("open %s:", argv[0]);
if (output && !freopen(output, "w", stdout))
fatal("open %s:", output);
- ppinit(argc ? argv[0] : "<stdin>");
+ ppinit(argv[0]);
if (pponly) {
while (tok.kind != TEOF) {
tokprint(&tok);