summaryrefslogtreecommitdiff
path: root/src/mbimcli/mbimcli-basic-connect.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2014-02-10 09:23:54 -0800
committerAleksander Morgado <aleksander@aleksander.es>2014-02-10 19:56:09 +0100
commitea5aefddb7b492088cc33b7b4e59487418a57d6a (patch)
tree0735431fe7332b1c22f4ace43577a6b711227d32 /src/mbimcli/mbimcli-basic-connect.c
parent50e173ed81ff498e7c0f00dcd11b02e136c8979b (diff)
downloadlibmbim-ea5aefddb7b492088cc33b7b4e59487418a57d6a.tar.gz
mbimcli: fix incorrect enumeration type conversions
This patch fixes the following incorrect enumeration type conversions: mbimcli-basic-connect.c:298:52: error: implicit conversion from enumeration type 'MbimVoiceClass' to different enumeration type 'MbimDeviceType' [-Werror,-Wenum-conversion] voice_class_str = mbim_device_type_get_string (voice_class); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~ mbimcli-basic-connect.c:1595:51: error: implicit conversion from enumeration type 'MbimActivationCommand' to different enumeration type 'MbimActivationState' [-Werror,-Wenum-conversion] MBIM_ACTIVATION_COMMAND_ACTIVATE, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'src/mbimcli/mbimcli-basic-connect.c')
-rw-r--r--src/mbimcli/mbimcli-basic-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c
index 025f1ef..97368aa 100644
--- a/src/mbimcli/mbimcli-basic-connect.c
+++ b/src/mbimcli/mbimcli-basic-connect.c
@@ -295,7 +295,7 @@ query_device_caps_ready (MbimDevice *device,
device_type_str = mbim_device_type_get_string (device_type);
cellular_class_str = mbim_cellular_class_build_string_from_mask (cellular_class);
- voice_class_str = mbim_device_type_get_string (voice_class);
+ voice_class_str = mbim_voice_class_get_string (voice_class);
sim_class_str = mbim_sim_class_build_string_from_mask (sim_class);
data_class_str = mbim_data_class_build_string_from_mask (data_class);
sms_caps_str = mbim_sms_caps_build_string_from_mask (sms_caps);
@@ -1592,7 +1592,7 @@ mbimcli_basic_connect_run (MbimDevice *device,
GError *error = NULL;
request = mbim_message_connect_query_new (0,
- MBIM_ACTIVATION_COMMAND_ACTIVATE,
+ MBIM_ACTIVATION_STATE_UNKNOWN,
MBIM_VOICE_CALL_STATE_NONE,
MBIM_CONTEXT_IP_TYPE_DEFAULT,
mbim_uuid_from_context_type (MBIM_CONTEXT_TYPE_INTERNET),