summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-12 14:04:17 +0100
committerJim Meyering <meyering@redhat.com>2012-01-12 14:04:44 +0100
commit6e51ccfb4eccfdb6672e69c982723f633fb0f099 (patch)
tree0cdbeab91ec5ab96982bf15a840342de9aaaae8c
parente3324651cc1f9f116754a4713e08bfb0bac50150 (diff)
downloaddiffutils-6e51ccfb4eccfdb6672e69c982723f633fb0f099.tar.gz
maint: avoid new syntax-check failure
* src/diff.c (compare_files): Use STREQ, not strcmp.
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 112c8c5..0911131 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1311,7 +1311,7 @@ compare_files (struct comparison const *parent,
}
if (status == EXIT_SUCCESS)
{
- if (strcmp (link_value[0], link_value[1]) != 0)
+ if ( ! STREQ (link_value[0], link_value[1]))
{
message ("Symbolic links %s and %s differ\n",
cmp.file[0].name, cmp.file[1].name);