diff options
-rw-r--r-- | plugins/altair/mm-modem-helpers-altair-lte.c | 5 | ||||
-rw-r--r-- | plugins/altair/mm-modem-helpers-altair-lte.h | 2 |
2 files changed, 3 insertions, 4 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, diff --git a/plugins/altair/mm-modem-helpers-altair-lte.h b/plugins/altair/mm-modem-helpers-altair-lte.h index 226e7884..ff7f64b0 100644 --- a/plugins/altair/mm-modem-helpers-altair-lte.h +++ b/plugins/altair/mm-modem-helpers-altair-lte.h @@ -30,7 +30,7 @@ gchar *mm_altair_parse_ceer_response (const gchar *response, GError **error); /* %CGINFO="cid",1 response parser */ -guint mm_altair_parse_cid (const gchar *response, GError **error); +gint mm_altair_parse_cid (const gchar *response, GError **error); /* %PCOINFO response parser */ MMPco *mm_altair_parse_vendor_pco_info (const gchar *pco_info, GError **error); |