diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:33:36 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:42:01 +0100 |
commit | 0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5 (patch) | |
tree | 091f3077b6f9d9071c630107a463fcb2b0c37fd1 | |
parent | 539bf7e8983c53c4cf79ffa64302bef1585bec31 (diff) | |
download | libguestfs-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.c | 2 |
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"); |