about summary refs log tree commit diff
path: root/lib/libpbm2.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-06 02:43:04 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-06 02:43:04 +0000
commitd67322bba056f39048b79d210745d9f90c54e707 (patch)
tree39600bd2760ef2fff55d31277674d447d8adda56 /lib/libpbm2.c
parent4429ca673de5b41f5484d5abbbcb97756ca3e3ef (diff)
downloadnetpbm-mirror-d67322bba056f39048b79d210745d9f90c54e707.tar.gz
netpbm-mirror-d67322bba056f39048b79d210745d9f90c54e707.tar.xz
netpbm-mirror-d67322bba056f39048b79d210745d9f90c54e707.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2479 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpbm2.c')
-rw-r--r--lib/libpbm2.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/lib/libpbm2.c b/lib/libpbm2.c
index a77fa0ae..8a7e3f1e 100644
--- a/lib/libpbm2.c
+++ b/lib/libpbm2.c
@@ -34,11 +34,9 @@ getbit (FILE * const file) {
 
 
 void
-pbm_readpbminitrest( file, colsP, rowsP )
-    FILE* file;
-    int* colsP;
-    int* rowsP;
-    {
+pbm_readpbminitrest( FILE * const file,
+                     int  * const colsP,
+                     int  * const rowsP ) {
     /* Read size. */
     *colsP = (int)pm_getuint( file );
     *rowsP = (int)pm_getuint( file );
@@ -55,7 +53,7 @@ pbm_readpbminitrest( file, colsP, rowsP )
         pm_error("Number of columns in header is too large.");
     if (*rowsP < 0)
         pm_error("Number of columns in header is too large.");
-    }
+}
 
 
 
@@ -122,13 +120,13 @@ pbm_readpbminit(FILE * const ifP,
 
 
 void
-pbm_readpbmrow( file, bitrow, cols, format )
-    FILE* file;
-    bit* bitrow;
-    int cols, format;
-    {
-    register int col, bitshift;
-    register bit* bP;
+pbm_readpbmrow( FILE * const file,
+                bit * const bitrow,
+                int const cols,
+                int const format) {
+
+    int col, bitshift;
+    bit * bP;
 
     switch ( format )
     {
@@ -156,7 +154,7 @@ pbm_readpbmrow( file, bitrow, cols, format )
     default:
     pm_error( "can't happen" );
     }
-    }
+}
 
 
 
@@ -267,12 +265,11 @@ pbm_readpbmrow_bitoffset(FILE *          const ifP,
 
 
 bit**
-pbm_readpbm( file, colsP, rowsP )
-    FILE* file;
-    int* colsP;
-    int* rowsP;
-    {
-    register bit** bits;
+pbm_readpbm( FILE * const file,
+             int  * const colsP,
+             int  * const rowsP) {
+
+    bit ** bits;
     int format, row;
 
     pbm_readpbminit( file, colsP, rowsP, &format );
@@ -283,4 +280,4 @@ pbm_readpbm( file, colsP, rowsP )
         pbm_readpbmrow( file, bits[row], *colsP, format );
 
     return bits;
-    }
+}