diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 14:26:21 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 3e70b34eed5a48640e20fbf6dcba774aaace1f3c (patch) | |
tree | 5bb681d85d8ff394f562b095e70c36d4ac5f7b5d /daemon/mount.c | |
parent | 627f89351d06e43564b47ea42cabaa522284c2a1 (diff) | |
download | libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.tar.gz libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.tar.xz libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.zip |
change strncmp() == 0 to STREQLEN()
git grep -l 'strncmp *([^=]*== *0'|xargs \
perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
Diffstat (limited to 'daemon/mount.c')
-rw-r--r-- | daemon/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/mount.c b/daemon/mount.c index 463e789f..5a27cea1 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -112,7 +112,7 @@ do_umount (const char *pathordevice) char *buf; int is_dev; - is_dev = strncmp (pathordevice, "/dev/", 5) == 0; + is_dev = STREQLEN (pathordevice, "/dev/", 5); buf = is_dev ? strdup (pathordevice) : sysroot_path (pathordevice); if (buf == NULL) { |