diff options
author | Jim Meyering <meyering@redhat.com> | 2009-12-16 18:02:58 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-12-16 18:02:58 +0100 |
commit | 7f5d6cfd525c520404c51770965328ece8da0a17 (patch) | |
tree | 4b1f312229b2ba596260984e4d051387da5bb69c /libparted | |
parent | 75720971bef62ba24a285165554631e80a23f3b6 (diff) | |
download | parted-7f5d6cfd525c520404c51770965328ece8da0a17.tar.gz |
maint: use "int", not "bool" for value returned by ped_device_write
* libparted/labels/gpt.c (gpt_write): Correct type of local.
* libparted/labels/mac.c (mac_clobber): Likewise.
* libparted/labels/sun.c (sun_write): Likewise.
Diffstat (limited to 'libparted')
-rw-r--r-- | libparted/labels/gpt.c | 2 | ||||
-rw-r--r-- | libparted/labels/mac.c | 2 | ||||
-rw-r--r-- | libparted/labels/sun.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c index 1aaef8a..4ae7b59 100644 --- a/libparted/labels/gpt.c +++ b/libparted/labels/gpt.c @@ -1213,7 +1213,7 @@ gpt_write (const PedDisk *disk) if ((pth_raw = pth_get_raw (disk->dev, gpt)) == NULL) goto error_free_ptes; pth_free (gpt); - bool write_ok = ped_device_write (disk->dev, pth_raw, 1, 1); + int write_ok = ped_device_write (disk->dev, pth_raw, 1, 1); free (pth_raw); if (!write_ok) goto error_free_ptes; diff --git a/libparted/labels/mac.c b/libparted/labels/mac.c index 27756ba..e90ab07 100644 --- a/libparted/labels/mac.c +++ b/libparted/labels/mac.c @@ -394,7 +394,7 @@ mac_clobber (PedDevice* dev) } memset (buf, 0, dev->sector_size); - bool ok = ped_device_write (dev, buf, 0, 1); + int ok = ped_device_write (dev, buf, 0, 1); free (buf); if (!ok) return 0; diff --git a/libparted/labels/sun.c b/libparted/labels/sun.c index 1622433..af6e1ef 100644 --- a/libparted/labels/sun.c +++ b/libparted/labels/sun.c @@ -522,7 +522,7 @@ sun_write (const PedDisk* disk) verify (sizeof *label == 512); memcpy (s0, label, sizeof *label); - bool write_ok = ped_device_write (disk->dev, s0, 0, 1); + int write_ok = ped_device_write (disk->dev, s0, 0, 1); free (s0); if (write_ok) |