change strncmp() == 0 to STREQLEN()

git grep -l 'strncmp *([^=]*== *0'|xargs \
  perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
This commit is contained in:
Jim Meyering
2009-11-09 14:26:21 +01:00
parent 627f89351d
commit 3e70b34eed
13 changed files with 21 additions and 21 deletions

View File

@@ -430,7 +430,7 @@ do_file (const char *path)
char *buf;
int len;
if (strncmp (path, "/dev/", 5) == 0)
if (STREQLEN (path, "/dev/", 5))
buf = (char *) path;
else {
buf = sysroot_path (path);