From 38e17c64239636a93f829522c3fff9102512ca2b Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 19 May 2009 01:43:52 +0000 Subject: cleanup - strcmp -> streq git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@927 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- analyzer/pnmpsnr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analyzer/pnmpsnr.c b/analyzer/pnmpsnr.c index 24517c63..88b2a981 100644 --- a/analyzer/pnmpsnr.c +++ b/analyzer/pnmpsnr.c @@ -13,6 +13,7 @@ #include #include "pm_c_util.h" +#include "nstring.h" #include "pam.h" #define MAXFILES 16 @@ -92,7 +93,7 @@ reportPsnr(struct pam const pam, char const filespec1[], char const filespec2[]) { - bool const color = (strcmp(pam.tuple_type, PAM_PPM_TUPLETYPE) == 0); + bool const color = streq(pam.tuple_type, PAM_PPM_TUPLETYPE); /* The PSNR is the ratio of the maximum possible mean square difference to the actual mean square difference. -- cgit 1.4.1