[PATCH] qmicli,dms: fix enum cast in qmicli_read_hp_device_mode_from_string

Aleksander Morgado aleksander at aleksander.es
Fri Feb 3 09:01:39 UTC 2017


On 03/02/17 01:45, Ben Chan wrote:
> ---
>  src/qmicli/qmicli-helpers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Thanks, pushed to git master.

> diff --git a/src/qmicli/qmicli-helpers.c b/src/qmicli/qmicli-helpers.c
> index 50ad263..9b948ef 100644
> --- a/src/qmicli/qmicli-helpers.c
> +++ b/src/qmicli/qmicli-helpers.c
> @@ -636,7 +636,7 @@ qmicli_read_hp_device_mode_from_string (const gchar *str,
>      enum_value = g_enum_get_value_by_nick (enum_class, str);
>  
>      if (enum_value)
> -        *out = (QmiDmsBootImageDownloadMode)enum_value->value;
> +        *out = (QmiDmsHpDeviceMode)enum_value->value;
>      else
>          g_printerr ("error: invalid HP device mode value given: '%s'\n", str);
>  
> 


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list