about summary refs log tree commit diff
path: root/converter/ppm/mtvtoppm.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm/mtvtoppm.c')
-rw-r--r--converter/ppm/mtvtoppm.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/converter/ppm/mtvtoppm.c b/converter/ppm/mtvtoppm.c
index 42f99428..73a960c8 100644
--- a/converter/ppm/mtvtoppm.c
+++ b/converter/ppm/mtvtoppm.c
@@ -12,17 +12,16 @@
 
 #include "ppm.h"
 
+#define MAXLINE 500    /* TODO Check if this is sufficient */
+
 int
-main( argc, argv )
-    int argc;
-    char* argv[];
-    {
+main(int argc , char* argv[]) {
+
     FILE* ifp;
     pixel* pixelrow;
-    register pixel* pP;
+    pixel* pP;
     int rows, cols, row, col;
     pixval maxval;
-#define MAXLINE 500
     char line[MAXLINE];
     unsigned char buf[3];
 
@@ -65,7 +64,7 @@ main( argc, argv )
     pm_close( stdout );
 
     exit( 0 );
-    }
+}