[virt-tools-list] [PATCH 1/2] Use correct param names in Product getters

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue Jul 26 13:43:23 UTC 2011


From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>

---
 osinfo/osinfo_product.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/osinfo/osinfo_product.c b/osinfo/osinfo_product.c
index 89e01bd..bbbcf67 100644
--- a/osinfo/osinfo_product.c
+++ b/osinfo/osinfo_product.c
@@ -158,15 +158,15 @@ void osinfo_product_add_related(OsinfoProduct *product, OsinfoProductRelationshi
 
 const gchar *osinfo_product_get_vendor(OsinfoProduct *prod)
 {
-    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME);
+    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VENDOR);
 }
 const gchar *osinfo_product_get_version(OsinfoProduct *prod)
 {
-    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME);
+    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VERSION);
 }
 const gchar *osinfo_product_get_short_id(OsinfoProduct *prod)
 {
-    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME);
+    return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_SHORT_ID);
 }
 const gchar *osinfo_product_get_name(OsinfoProduct *prod)
 {
-- 
1.7.6




More information about the virt-tools-list mailing list