summaryrefslogtreecommitdiffstats
path: root/fish/destpaths.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 15:03:01 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:34:16 +0100
commit539bf7e8983c53c4cf79ffa64302bef1585bec31 (patch)
tree86393065cadc2b280cafa6956798d87c37740dcd /fish/destpaths.c
parent9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 (diff)
downloadlibguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.gz
libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.xz
libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.zip
use STREQ, not strcmp: part 2
git grep -l 'strcmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *!= *0\b/STRNEQ$1/g'
Diffstat (limited to 'fish/destpaths.c')
-rw-r--r--fish/destpaths.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/destpaths.c b/fish/destpaths.c
index 02e9f223..87287aae 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -166,8 +166,8 @@ complete_dest_paths_generator (const char *text, int state)
for (i = 0; i < dirents->len; ++i) {
int err;
- if (strcmp (dirents->val[i].name, ".") != 0 &&
- strcmp (dirents->val[i].name, "..") != 0) {
+ if (STRNEQ (dirents->val[i].name, ".") &&
+ STRNEQ (dirents->val[i].name, "..")) {
if (STREQ (dir, "/"))
err = asprintf (&p, "/%s", dirents->val[i].name);
else