summaryrefslogtreecommitdiffstats
path: root/fish/destpaths.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 22:33:54 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:42:02 +0100
commitc9d94984588d166bcdc077a7972a1b454678ba10 (patch)
treea43fc1eebaa0f460a846d3af88b6e4157e0041bc /fish/destpaths.c
parent0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5 (diff)
downloadlibguestfs-c9d94984588d166bcdc077a7972a1b454678ba10.tar.gz
libguestfs-c9d94984588d166bcdc077a7972a1b454678ba10.tar.xz
libguestfs-c9d94984588d166bcdc077a7972a1b454678ba10.zip
change strncasecmp() == 0 to STRCASEEQLEN()
git grep -l 'strncasecmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *== *0\b/STRCASEEQLEN$1/g'
Diffstat (limited to 'fish/destpaths.c')
-rw-r--r--fish/destpaths.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/destpaths.c b/fish/destpaths.c
index 87287aae..c12c64ae 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -215,7 +215,7 @@ complete_dest_paths_generator (const char *text, int state)
word = &words[index];
index++;
- if (strncasecmp (word->name, text, len) == 0) {
+ if (STRCASEEQLEN (word->name, text, len)) {
if (word->is_dir)
rl_completion_append_character = '/';