git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
change strncmp() == 0 to STREQLEN()
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
463e789
..
5a27cea
100644
(file)
--- 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) {