summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 22:33:36 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:42:01 +0100
commit0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5 (patch)
tree091f3077b6f9d9071c630107a463fcb2b0c37fd1
parent539bf7e8983c53c4cf79ffa64302bef1585bec31 (diff)
downloadlibguestfs-0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5.tar.gz
libguestfs-0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5.tar.xz
libguestfs-0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5.zip
change strncasecmp() == 0 to STRCASENEQLEN()
git grep -l 'strncasecmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *!= *0\b/STRCASENEQLEN$1/g'
-rw-r--r--fish/fish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c
index cd102966..0387eb75 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -1340,7 +1340,7 @@ resolve_win_path (const char *path)
char *ret;
size_t i;
- if (strncasecmp (path, "win:", 4) != 0) {
+ if (STRCASENEQLEN (path, "win:", 4)) {
ret = strdup (path);
if (ret == NULL)
perror ("strdup");