summaryrefslogtreecommitdiffstats
path: root/daemon/sfdisk.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 18:51:32 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:33 +0200
commit1997858e90da728287ef26a6d01a5766ac914312 (patch)
tree620c80d472b8b0f50cf38e2960ed8253070d12e6 /daemon/sfdisk.c
parent966dbd977f12b639169a48042b558834f627e5f8 (diff)
downloadlibguestfs-1997858e90da728287ef26a6d01a5766ac914312.tar.gz
libguestfs-1997858e90da728287ef26a6d01a5766ac914312.tar.xz
libguestfs-1997858e90da728287ef26a6d01a5766ac914312.zip
change almost all uses: s/IS_DEVICE/RESOLVE_DEVICE/
Use this command: git grep -l -w IS_DEVICE|xargs perl -pi -e \ 's/\b(?:IS_DEVICE)\b( \(.*?,) (.*?)\)/RESOLVE_DEVICE$1 return $2)/'
Diffstat (limited to 'daemon/sfdisk.c')
-rw-r--r--daemon/sfdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c
index e06d0bf0..693e89a1 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) {