From 7f5d6cfd525c520404c51770965328ece8da0a17 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 16 Dec 2009 18:02:58 +0100 Subject: 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. --- libparted/labels/gpt.c | 2 +- libparted/labels/mac.c | 2 +- libparted/labels/sun.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libparted') 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) -- cgit v1.2.1