about summary refs log tree commit diff
path: root/converter/ppm/ppmtopi1.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm/ppmtopi1.c')
-rw-r--r--converter/ppm/ppmtopi1.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/converter/ppm/ppmtopi1.c b/converter/ppm/ppmtopi1.c
index 896ec7f7..9fa46a62 100644
--- a/converter/ppm/ppmtopi1.c
+++ b/converter/ppm/ppmtopi1.c
@@ -20,17 +20,15 @@
 static short screen[ROWS*COLS/4];  /* simulate the ST's video RAM */
 
 int
-main( argc, argv )
-    int argc;
-    char* argv[];
-    {
+main(int argc, char* argv[]) {
+
     FILE* ifp;
     pixel** pixels;
-    register pixel *pP;
+    pixel *pP;
     colorhist_vector chv;
     colorhash_table cht;
     int rows, cols, row, colors, i;
-    register int col;
+    int col;
     pixval maxval;
 
 
@@ -97,7 +95,7 @@ main( argc, argv )
         {
         for ( col = 0, pP = pixels[row]; col < cols; ++col, ++pP )
             {
-            register int color, ind, b, plane;
+            int color, ind, b, plane;
 
             color = ppm_lookupcolor( cht, pP );
             if ( color == -1 )
@@ -117,7 +115,7 @@ main( argc, argv )
         (void) pm_writebigshort( stdout, screen[i] );
 
     exit( 0 );
-    }
+}