diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:33:54 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:42:02 +0100 |
commit | c9d94984588d166bcdc077a7972a1b454678ba10 (patch) | |
tree | a43fc1eebaa0f460a846d3af88b6e4157e0041bc /src | |
parent | 0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5 (diff) | |
download | libguestfs-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.ml | 2 |
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); } |