diff options
author | Ben Chan <benchan@chromium.org> | 2017-02-02 16:45:28 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-02-03 09:50:52 +0100 |
commit | 18985936f38c08f827a6a7e7d8ed7ea4c12ac19d (patch) | |
tree | 67ba491a15c8f62b07bb550d8fe331944369ef14 | |
parent | b0c82b68b888ef7ded4e104a68fbb1db12953439 (diff) |
qmicli,dms: fix enum cast in qmicli_read_hp_device_mode_from_string
-rw-r--r-- | src/qmicli/qmicli-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |