about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
Diffstat (limited to 'converter')
-rw-r--r--converter/pgm/pgmtolispm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/pgm/pgmtolispm.c b/converter/pgm/pgmtolispm.c
index 230ceb6a..7d931fb3 100644
--- a/converter/pgm/pgmtolispm.c
+++ b/converter/pgm/pgmtolispm.c
@@ -20,8 +20,6 @@
 ** Changed code style (ANSI-style function definitions, etc.)
 */
 
-#include <stdio.h>
-
 #include "pm.h"
 #include "pgm.h"
 
@@ -150,6 +148,8 @@ main(int argc, const char * argv[]) {
                      "input file name");
     }
 
+    ifP = pm_openr(inputFile);
+
     pgm_readpgminit(ifP, &cols, &rows, &maxval, &format);
 
     grayrow = pgm_allocrow(cols);