[virt-tools-list] [libvirt-users] [PATCH] Use correct param names in Product getters

Eric Blake eblake at redhat.com
Fri Jul 1 13:44:22 UTC 2011


[assuming you meant this to go to virt-tools-list]

On 07/01/2011 07:22 AM, Zeeshan Ali (Khattak) wrote:
> 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)
>  {

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20110701/80da9c0a/attachment.sig>


More information about the virt-tools-list mailing list