summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/generator.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 3c1ff2b5..4fba15fd 100644
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -6772,7 +6772,7 @@ generator (const char *text, int state)
while ((name = commands[index]) != NULL) {
index++;
- if (strncasecmp (name, text, len) == 0)
+ if (STRCASEEQLEN (name, text, len))
return strdup (name);
}