aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-10-01 20:31:00 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-10-01 20:31:00 +0000
commitc7ef297a8e3c18d58a94e5c94aa00932fb768e28 (patch)
treea1f7d643e40b5130b707a910c2f7c211736659b6 /usr.bin/patch/common.h
parent00b460ffc5fde7388bd2dd349973b762bb5cf309 (diff)
Notes
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 2cdeaffc7618c..5533115bb7915 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -48,9 +48,9 @@
/* handy definitions */
#define strNE(s1,s2) (strcmp(s1, s2))
-#define strEQ(s1,s2) (!strcmp(s1, s2))
+#define strEQ(s1,s2) (strcmp(s1, s2) == 0)
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
-#define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
+#define strnEQ(s1,s2,l) (strncmp(s1, s2, l) == 0)
/* typedefs */