aboutsummaryrefslogtreecommitdiff
path: root/plugins/altair/mm-modem-helpers-altair-lte.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/altair/mm-modem-helpers-altair-lte.c')
-rw-r--r--plugins/altair/mm-modem-helpers-altair-lte.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c
index 7df77ce2..d1b2aa5c 100644
--- a/plugins/altair/mm-modem-helpers-altair-lte.c
+++ b/plugins/altair/mm-modem-helpers-altair-lte.c
@@ -108,7 +108,7 @@ mm_altair_parse_ceer_response (const gchar *response,
/*****************************************************************************/
/* %CGINFO="cid",1 response parser */
-guint
+gint
mm_altair_parse_cid (const gchar *response, GError **error)
{
g_autoptr(GRegex) regex = NULL;
@@ -117,9 +117,8 @@ mm_altair_parse_cid (const gchar *response, GError **error)
regex = g_regex_new ("\\%CGINFO:\\s*(\\d+)", G_REGEX_RAW, 0, NULL);
g_assert (regex);
- if (!g_regex_match_full (regex, response, strlen (response), 0, 0, &match_info, error)) {
+ if (!g_regex_match_full (regex, response, strlen (response), 0, 0, &match_info, error))
return -1;
- }
if (!mm_get_uint_from_match_info (match_info, 1, &cid))
g_set_error (error,