change almost all uses: s/IS_DEVICE/RESOLVE_DEVICE/
[libguestfs.git] / daemon / devsparts.c
index e9c5e8f..c3b9756 100644 (file)
@@ -193,7 +193,7 @@ do_mkfs (char *fstype, char *device)
   char *err;
   int r;
 
-  IS_DEVICE (device, -1);
+  RESOLVE_DEVICE (device, return -1);
 
   r = command (NULL, &err, "/sbin/mkfs", "-t", fstype, device, NULL);
   if (r == -1) {