about summary refs log tree commit diff
path: root/converter/pgm
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-19 01:09:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-19 01:09:58 +0000
commitdf9163ee9fc8c86f46e6b6882bf72cefaf7d1975 (patch)
tree06ed27b9fb6c35404ed875287deaaaf0959755dd /converter/pgm
parent9eb059deb7d49a051b4194350aa519e5540c100d (diff)
downloadnetpbm-mirror-df9163ee9fc8c86f46e6b6882bf72cefaf7d1975.tar.gz
netpbm-mirror-df9163ee9fc8c86f46e6b6882bf72cefaf7d1975.tar.xz
netpbm-mirror-df9163ee9fc8c86f46e6b6882bf72cefaf7d1975.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2385 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pgm')
-rw-r--r--converter/pgm/sbigtopgm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c
index aac1d31b..308a7d6d 100644
--- a/converter/pgm/sbigtopgm.c
+++ b/converter/pgm/sbigtopgm.c
@@ -117,8 +117,8 @@ struct SbigHeader {
     unsigned int cols;
     unsigned int maxval;
     bool isCompressed;
-    bool haveCamera;
-    char camera[80];
+    bool haveCameraType;
+    char cameraType[80];
 };
 
 
@@ -168,7 +168,7 @@ readSbigHeader(FILE *              const ifP,
     gotHeight = false;  /* initial value */
 
     sbigHeaderP->maxval = 65535;  /* initial assumption */
-    sbigHeaderP->haveCamera = false;  /* initial assumption */
+    sbigHeaderP->haveCameraType = false;  /* initial assumption */
 
     for (cursor = &buffer[0], endOfHeader = false; !endOfHeader;) {
         char * const cp = strchr(cursor, '\n');
@@ -183,8 +183,8 @@ readSbigHeader(FILE *              const ifP,
 
             if (ep != NULL) {
                 *ep = '\0';
-                strcpy(sbigHeaderP->camera, cursor);
-                sbigHeaderP->haveCamera = true;
+                strcpy(sbigHeaderP->cameraType, cursor);
+                sbigHeaderP->haveCameraType = true;
                 *ep = ' ';
             }
         }
@@ -292,8 +292,8 @@ main(int argc, const char ** argv) {
 
     readSbigHeader(ifP, &hdr);
 
-    pm_message("SBIG %s %dx%d %s image, saturation level = %d",
-               (hdr.haveCamera ? hdr.camera : "ST-?"),
+    pm_message("SBIG '%s' %ux%u %s image, saturation level = %u",
+               (hdr.haveCameraType ? hdr.cameraType : "ST-?"),
                hdr.cols, hdr.rows,
                hdr.isCompressed ? "compressed" : "uncompressed",
                hdr.maxval);