[PATCH 1/1] cli, call: fix incorrect string conversion of MMCallStateReason enum
Ben Chan
benchan at chromium.org
Fri Nov 30 00:35:44 UTC 2018
This patch fixes the following issue with string conversion of a MMCallStateReason enum:
mmcli-call.c:160:88: error: implicit conversion from enumeration type 'MMCallStateReason' to different enumeration type 'MMCallState' [-Werror,-Wenum-conversion]
mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE_REASON, mm_call_state_get_string (mm_call_get_state_reason (call)));
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
cli/mmcli-call.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/mmcli-call.c b/cli/mmcli-call.c
index d4930285..a871dbc0 100644
--- a/cli/mmcli-call.c
+++ b/cli/mmcli-call.c
@@ -157,7 +157,7 @@ print_call_info (MMCall *call)
mmcli_output_string (MMC_F_CALL_PROPERTIES_NUMBER, mm_call_get_number (call));
mmcli_output_string (MMC_F_CALL_PROPERTIES_DIRECTION, mm_call_direction_get_string (mm_call_get_direction (call)));
mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE, mm_call_state_get_string (mm_call_get_state (call)));
- mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE_REASON, mm_call_state_get_string (mm_call_get_state_reason (call)));
+ mmcli_output_string (MMC_F_CALL_PROPERTIES_STATE_REASON, mm_call_state_reason_get_string (mm_call_get_state_reason (call)));
mmcli_output_string (MMC_F_CALL_PROPERTIES_AUDIO_PORT, mm_call_get_audio_port (call));
if (audio_format) {
--
2.20.0.rc0.387.gc7a69e6b6c-goog
More information about the ModemManager-devel
mailing list