about summary refs log tree commit diff
path: root/editor/pnmcat.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-09-17 02:28:56 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-09-17 02:28:56 +0000
commit07bf731055482e4e7eab73816ec1fd55edb07887 (patch)
tree09c3d3a074a53eceb825775ac0c70bd31a566c37 /editor/pnmcat.c
parent0d8ca682a8e28a86fff1ed2d1f70a9cc02caf4c2 (diff)
downloadnetpbm-mirror-07bf731055482e4e7eab73816ec1fd55edb07887.tar.gz
netpbm-mirror-07bf731055482e4e7eab73816ec1fd55edb07887.tar.xz
netpbm-mirror-07bf731055482e4e7eab73816ec1fd55edb07887.zip
Fix compiler warning
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@725 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmcat.c')
-rw-r--r--editor/pnmcat.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/editor/pnmcat.c b/editor/pnmcat.c
index e5d8fc35..5ede0bbc 100644
--- a/editor/pnmcat.c
+++ b/editor/pnmcat.c
@@ -1,4 +1,4 @@
-/* pnmcat.c - concatenate portable anymaps
+/* pnmcat.c - concatenate PNM images
 **
 ** Copyright (C) 1989, 1991 by Jef Poskanzer.
 **
@@ -266,7 +266,7 @@ copyBitrow(const unsigned char * const source,
 
 static void
 padFillBitrow(unsigned char * const destBitrow,
-              char            const padColor,
+              unsigned char   const padColor,
               unsigned int    const cols,
               unsigned int    const offset) {
 /*----------------------------------------------------------------------------
@@ -428,7 +428,6 @@ concatenateLeftRightPbm(FILE *             const ofP,
                 /* This row begins a run of padding, either above or below
                    file 'i', so set 'outrow' to padding.
                 */
-                
                 padFillBitrow(outrow, img2[i].background, img[i].cols,
                               img2[i].offset);
             }
@@ -470,9 +469,9 @@ concatenateTopBottomPbm(FILE *             const ofP,
                         enum backcolor     const backcolor) {
 
     unsigned char * const outrow = pbm_allocrow_packed(newcols);
-      /* Like the left-right PBM case, all padding and image data
-         goes directly into outrow.  There is no proberow.
-      */
+        /* Like the left-right PBM case, all padding and image data
+           goes directly into outrow.  There is no proberow.
+        */
     unsigned char background, backgroundPrev;
         /* 0x00 means white; 0xff means black */
     unsigned int  padleft;