tell "make syntax-check" that examples/to-xml.c is exempt from some tests
[libguestfs.git] / daemon / mount.c
index 463e789..49a0eab 100644 (file)
@@ -50,7 +50,7 @@ do_mount_vfs (const char *options, const char *vfstype,
 
   ABS_PATH (mountpoint, return -1);
 
-  is_root = strcmp (mountpoint, "/") == 0;
+  is_root = STREQ (mountpoint, "/");
 
   if (!root_mounted && !is_root) {
     reply_with_error ("mount: you must mount something on / first");
@@ -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) {