[libvirt-glib 3/3] Correct return type of gvir_storage_pool_create_volume()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>

---
 libvirt-gobject/libvirt-gobject-storage-pool.c |    6 +++---
 libvirt-gobject/libvirt-gobject-storage-pool.h |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libvirt-gobject/libvirt-gobject-storage-pool.c b/libvirt-gobject/libvirt-gobject-storage-pool.c
index 5bd3f0a..bf25641 100644
--- a/libvirt-gobject/libvirt-gobject-storage-pool.c
+++ b/libvirt-gobject/libvirt-gobject-storage-pool.c
@@ -499,11 +499,11 @@ GList *gvir_storage_pool_get_volumes(GVirStoragePool *pool)
  *
  * Return value: (transfer full): the #GVirStorageVol, or NULL
  */
-GVirStoragePool *gvir_storage_pool_get_volume(GVirStoragePool *pool,
-                                              const gchar *name)
+GVirStorageVol *gvir_storage_pool_get_volume(GVirStoragePool *pool,
+                                             const gchar *name)
 {
     GVirStoragePoolPrivate *priv = pool->priv;
-    GVirStoragePool *volume;
+    GVirStorageVol *volume;
 
     g_mutex_lock(priv->lock);
     volume = g_hash_table_lookup(priv->volumes, name);
diff --git a/libvirt-gobject/libvirt-gobject-storage-pool.h b/libvirt-gobject/libvirt-gobject-storage-pool.h
index 778844b..4589844 100644
--- a/libvirt-gobject/libvirt-gobject-storage-pool.h
+++ b/libvirt-gobject/libvirt-gobject-storage-pool.h
@@ -102,8 +102,8 @@ gboolean gvir_storage_pool_refresh_finish(GVirStoragePool *pool,
                                           GError **err);
 
 GList *gvir_storage_pool_get_volumes(GVirStoragePool *pool);
-GVirStoragePool *gvir_storage_pool_get_volume(GVirStoragePool *pool,
-                                              const gchar *name);
+GVirStorageVol *gvir_storage_pool_get_volume(GVirStoragePool *pool,
+                                             const gchar *name);
 GVirStorageVol *gvir_storage_pool_create_volume
                                 (GVirStoragePool *pool,
                                  GVirConfigStorageVol *conf,
-- 
1.7.7.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]