generator.ml: use new "Pathname" designation
[libguestfs.git] / daemon / devsparts.c
index e9c5e8f..b4ea578 100644 (file)
@@ -188,13 +188,11 @@ do_list_partitions (void)
 }
 
 int
-do_mkfs (char *fstype, char *device)
+do_mkfs (const char *fstype, const char *device)
 {
   char *err;
   int r;
 
-  IS_DEVICE (device, -1);
-
   r = command (NULL, &err, "/sbin/mkfs", "-t", fstype, device, NULL);
   if (r == -1) {
     reply_with_error ("mkfs: %s", err);