change strncasecmp() == 0 to STRCASENEQLEN()

git grep -l 'strncasecmp *([^=]*!= *0'|xargs \
  perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *!= *0\b/STRCASENEQLEN$1/g'
This commit is contained in:
Jim Meyering
2009-11-09 22:33:36 +01:00
parent 539bf7e898
commit 0c20bd8ea7

View File

@@ -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");