about summary refs log tree commit diff
path: root/converter/other/jpeg2000
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-04-26 02:04:14 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-04-26 02:04:14 +0000
commit62675a4236100f4acefe5b4d75d101957e2a4c55 (patch)
tree7e830f22f07d1a37188563801533228fdf7d3c64 /converter/other/jpeg2000
parent6ecfd67b3a55e4f2b25d7f203dfb84ea2eaf6e2a (diff)
downloadnetpbm-mirror-62675a4236100f4acefe5b4d75d101957e2a4c55.tar.gz
netpbm-mirror-62675a4236100f4acefe5b4d75d101957e2a4c55.tar.xz
netpbm-mirror-62675a4236100f4acefe5b4d75d101957e2a4c55.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3214 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/jpeg2000')
-rw-r--r--converter/other/jpeg2000/pamtojpeg2k.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c
index 630f2310..1272a422 100644
--- a/converter/other/jpeg2000/pamtojpeg2k.c
+++ b/converter/other/jpeg2000/pamtojpeg2k.c
@@ -341,7 +341,7 @@ convertToJasperImage(struct pam *   const inpamP,
 
     createJasperImage(inpamP, &jasperP);
 
-    if (strncmp(inpamP->tuple_type, "RGB", 3) == 0) {
+    if (strneq(inpamP->tuple_type, "RGB", 3)) {
         if (inpamP->depth < 3)
             pm_error("Input tuple type is RGB*, but depth is only %d.  "
                      "It should be at least 3.", inpamP->depth);
@@ -355,8 +355,8 @@ convertToJasperImage(struct pam *   const inpamP,
                                   JAS_IMAGE_CT_COLOR(JAS_IMAGE_CT_RGB_B));
         }
     } else {
-        if (strncmp(inpamP->tuple_type, "GRAYSCALE", 9) == 0 ||
-            strncmp(inpamP->tuple_type, "BLACKANDWHITE", 13) == 0) {
+        if (strneq(inpamP->tuple_type, "GRAYSCALE", 9) ||
+            strneq(inpamP->tuple_type, "BLACKANDWHITE", 13)) {
             jas_image_setclrspc(jasperP, JAS_CLRSPC_GENGRAY);
             jas_image_setcmpttype(jasperP, 0,
                                   JAS_IMAGE_CT_COLOR(JAS_IMAGE_CT_GRAY_Y));