[Parted-commits] [SCM] GNU Parted Library - Language Bindings branch, master, updated. LIBPARTED_0_1-18-g4329215

Debarshi Ray (none) debray at libra.
Tue Nov 6 13:09:07 UTC 2007


The branch, master has been updated
       via  432921594d1617bd1595e394633ed9372c9470e4 (commit)
       via  8a96f610ecae8eeccab726f986eb75cca53471fa (commit)
      from  33f953d810535eb0209d5467ea37d0a3a938fa11 (commit)


- Shortlog ------------------------------------------------------------
4329215 Passing disk.get_c_disk(), instead of disk_, to ped_disk_duplicate in Disk::Disk(const Disk &disk).
8a96f61 Passing NULL, instead of device_, to ped_device_get_next in Device::Device().

Summary of changes:
 cpp/libpartedpp/device.cc |    2 +-
 cpp/libpartedpp/disk.cc   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 432921594d1617bd1595e394633ed9372c9470e4
Author: Debarshi Ray <rishi at gnu.org>
Date:   Tue Nov 6 18:33:23 2007 +0530

    Passing disk.get_c_disk(), instead of disk_, to ped_disk_duplicate in Disk::Disk(const Disk &disk).

diff --git a/cpp/libpartedpp/disk.cc b/cpp/libpartedpp/disk.cc
index fa8892d..78d7d19 100644
--- a/cpp/libpartedpp/disk.cc
+++ b/cpp/libpartedpp/disk.cc
@@ -49,7 +49,7 @@ PedDisk* Disk::get_c_disk() {
  * ------ */
 
 Disk::Disk(const Disk &disk)
-    : disk_(ped_disk_duplicate(disk_)) {
+    : disk_(ped_disk_duplicate(disk.get_c_disk())) {
 }
 
 Disk::Disk(Device &device)

commit 8a96f610ecae8eeccab726f986eb75cca53471fa
Author: Debarshi Ray <rishi at gnu.org>
Date:   Tue Nov 6 18:32:35 2007 +0530

    Passing NULL, instead of device_, to ped_device_get_next in Device::Device().

diff --git a/cpp/libpartedpp/device.cc b/cpp/libpartedpp/device.cc
index 093869e..3a3b510 100644
--- a/cpp/libpartedpp/device.cc
+++ b/cpp/libpartedpp/device.cc
@@ -54,7 +54,7 @@ PedDevice* Device::get_c_device() {
 
 Device::Device() throw (std::runtime_error) {
     ped_device_probe_all();
-    device_ = ped_device_get_next(device_);
+    device_ = ped_device_get_next(NULL);
     if (!device_) {
         throw std::runtime_error("No further devices found!");
     }

-- 
GNU Parted Library - Language Bindings



More information about the Parted-commits mailing list