mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user