[PATCH] qmicli, dms: fix enum cast in qmicli_read_hp_device_mode_from_string
Ben Chan
benchan at chromium.org
Fri Feb 3 00:45:28 UTC 2017
---
src/qmicli/qmicli-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.11.0.483.g087da7b7c-goog
More information about the libqmi-devel
mailing list