about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-05-08 22:24:06 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-05-08 22:24:06 +0000
commit7a0dbb463c55783da12c0d25aaebf6f234a8e457 (patch)
tree43ac01de67af27d2bb6cf080969a0235894b4e73 /converter/other
parentc8c9f47432488ff8a25c446f3f2a244b455659da (diff)
downloadnetpbm-mirror-7a0dbb463c55783da12c0d25aaebf6f234a8e457.tar.gz
netpbm-mirror-7a0dbb463c55783da12c0d25aaebf6f234a8e457.tar.xz
netpbm-mirror-7a0dbb463c55783da12c0d25aaebf6f234a8e457.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2769 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r--converter/other/bmptopnm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c
index c5a77c2d..d57bfba9 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -266,6 +266,8 @@ bmpReadfileheader(FILE *         const ifP,
 
     *offBitsP = offBits;
 
+    assert(BMPlenfileheader() == 14);
+
     *bytesReadP = 14;
 }
 
@@ -1191,10 +1193,7 @@ reportHeader(struct bmpInfoHeader const header,
              unsigned int         const offBits) {
              
     pm_message("BMP image header says:");
-    pm_message("  Class of BMP: %s", 
-               header.class == C_WIN ? "Windows" : 
-               header.class == C_OS2 ? "OS/2" :
-               "???");
+    pm_message("  Class of BMP: %s", BMPClassName(header.class));
     pm_message("  Width: %d pixels", header.cols);
     pm_message("  Height: %d pixels", header.rows);
     pm_message("  Depth: %d planes", header.cPlanes);