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

@@ -133,7 +133,7 @@ complete_dest_paths_generator (const char *text, int state)
} while (0)
/* Is it a device? */
if (len < 5 || strncmp (text, "/dev/", 5) == 0) {
if (len < 5 || STREQLEN (text, "/dev/", 5)) {
/* Get a list of everything that can possibly begin with /dev/ */
strs = guestfs_list_devices (g);
APPEND_STRS_AND_FREE;