aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-10-01 20:46:01 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-10-01 20:46:01 +0000
commit758a3cff59d79c504cf0bb2060f5844dc5787f0f (patch)
treee45c7b7bd4ab508e669c48834add8ebb6e00f14c /usr.bin/patch
parentc7ef297a8e3c18d58a94e5c94aa00932fb768e28 (diff)
downloadsrc-758a3cff59d79c504cf0bb2060f5844dc5787f0f.tar.gz
src-758a3cff59d79c504cf0bb2060f5844dc5787f0f.zip
patch(1): make some macros look boolean.
Similar to r306560, plus remove an unused macro. Suggested by: jmallett
Notes
Notes: svn path=/head/; revision=306561
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 5533115bb791..1e69ee9b07fd 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -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 */