diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-15 18:56:01 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-15 18:56:01 +0100 |
commit | 40e9434cc36174506ed9bbd01c8f78eaea673a2f (patch) | |
tree | aa7eb690aaaa4298cc772dc52e2e9642792243fc | |
parent | f7757218176b79d9703a72d5142b3b0e63aea692 (diff) |
altair-lte: use autoptr support from glib
-rw-r--r-- | plugins/altair/mm-modem-helpers-altair-lte.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c index 09c6f18f..7df77ce2 100644 --- a/plugins/altair/mm-modem-helpers-altair-lte.c +++ b/plugins/altair/mm-modem-helpers-altair-lte.c @@ -71,8 +71,8 @@ gchar * mm_altair_parse_ceer_response (const gchar *response, GError **error) { - mm_autoptr(GRegex) r = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) r = NULL; + g_autoptr(GMatchInfo) match_info = NULL; gchar *ceer_response = NULL; @@ -111,8 +111,8 @@ mm_altair_parse_ceer_response (const gchar *response, guint mm_altair_parse_cid (const gchar *response, GError **error) { - mm_autoptr(GRegex) regex = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) regex = NULL; + g_autoptr(GMatchInfo) match_info = NULL; guint cid = -1; regex = g_regex_new ("\\%CGINFO:\\s*(\\d+)", G_REGEX_RAW, 0, NULL); @@ -136,8 +136,8 @@ mm_altair_parse_cid (const gchar *response, GError **error) MMPco * mm_altair_parse_vendor_pco_info (const gchar *pco_info, GError **error) { - mm_autoptr(GRegex) regex = NULL; - mm_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) regex = NULL; + g_autoptr(GMatchInfo) match_info = NULL; MMPco *pco = NULL; gint num_matches; |