From: Jim Meyering Date: Mon, 9 Nov 2009 21:33:36 +0000 (+0100) Subject: change strncasecmp() == 0 to STRCASENEQLEN() X-Git-Tag: 1.0.78~18 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5;p=libguestfs.git change strncasecmp() == 0 to STRCASENEQLEN() git grep -l 'strncasecmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *!= *0\b/STRCASENEQLEN$1/g' --- diff --git a/fish/fish.c b/fish/fish.c index cd10296..0387eb7 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");