Explicit checks for return values of strcmp().
[mmh] / sbr / mf.c
index 45bbecd..53752a3 100644 (file)
--- a/sbr/mf.c
+++ b/sbr/mf.c
@@ -54,10 +54,9 @@ getcpy(char *s)
 static int
 isat(char *p)
 {
-       return (strncmp(p, " AT ", 4)
-               && strncmp(p, " At ", 4)
-               && strncmp(p, " aT ", 4)
-               && strncmp(p, " at ", 4) ? FALSE : TRUE);
+       return (strncmp(p, " AT ", 4)!=0 && strncmp(p, " At ", 4)!=0 &&
+                       strncmp(p, " aT ", 4)!=0 && strncmp(p, " at ", 4)!=0 ?
+                       FALSE : TRUE);
 }