bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] [PATCH] maint: avoid new syntax-check failure


From: Jim Meyering
Subject: [bug-diffutils] [PATCH] maint: avoid new syntax-check failure
Date: Thu, 12 Jan 2012 14:05:46 +0100

FYI,

>From 6e51ccfb4eccfdb6672e69c982723f633fb0f099 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 12 Jan 2012 14:04:17 +0100
Subject: [PATCH] maint: avoid new syntax-check failure

* src/diff.c (compare_files): Use STREQ, not strcmp.
---
 src/diff.c |    2 +-
 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);
--
1.7.9.rc0.25.gc7817



reply via email to

[Prev in Thread] Current Thread [Next in Thread]