X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=daemon%2Fsfdisk.c;h=693e89a148ec9195f6d4771452db04c837e89942;hb=1997858e90da728287ef26a6d01a5766ac914312;hp=e06d0bf0cdb6f2cad643502fefcd15b0e67286a4;hpb=966dbd977f12b639169a48042b558834f627e5f8;p=libguestfs.git diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index e06d0bf..693e89a 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -38,7 +38,7 @@ sfdisk (char *device, int n, int cyls, int heads, int sectors, char buf[256]; int i; - IS_DEVICE (device, -1); + RESOLVE_DEVICE (device, return -1); strcpy (buf, "/sbin/sfdisk"); @@ -111,7 +111,7 @@ sfdisk_flag (char *device, const char *flag) char *out, *err; int r; - IS_DEVICE (device, NULL); + RESOLVE_DEVICE (device, return NULL); r = command (&out, &err, "/sbin/sfdisk", flag, device, NULL); if (r == -1) {