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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user