Author: pfg
Date: Sat Oct  1 20:46:01 2016
New Revision: 306561
URL: https://svnweb.freebsd.org/changeset/base/306561

Log:
  patch(1): make some macros look boolean.
  
  Similar to r306560, plus remove an unused macro.
  
  Suggested by: jmallett

Modified:
  head/usr.bin/patch/common.h

Modified: head/usr.bin/patch/common.h
==============================================================================
--- head/usr.bin/patch/common.h Sat Oct  1 20:31:00 2016        (r306560)
+++ head/usr.bin/patch/common.h Sat Oct  1 20:46:01 2016        (r306561)
@@ -47,9 +47,8 @@
 
 /* handy definitions */
 
-#define        strNE(s1,s2) (strcmp(s1, s2))
 #define        strEQ(s1,s2) (strcmp(s1, s2) == 0)
-#define        strnNE(s1,s2,l) (strncmp(s1, s2, l))
+#define        strnNE(s1,s2,l) (strncmp(s1, s2, l) != 0)
 #define        strnEQ(s1,s2,l) (strncmp(s1, s2, l) == 0)
 
 /* typedefs */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to