diff options
author | Ben Chan <benchan@chromium.org> | 2018-12-12 16:58:46 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-13 10:48:21 +0100 |
commit | 0d6e2dc9f57888e72ee3433e702e469c58022651 (patch) | |
tree | f562bb20658e1c1ba79a9638cb563677dd9857d0 | |
parent | 1cee215f83461b0d141ce68abddb093d870c2ea8 (diff) | |
download | ModemManager-0d6e2dc9f57888e72ee3433e702e469c58022651.tar.gz |
altair-lte: use mm_autoptr instead of g_autoptr
commit 397faef3c5ce ("mm-common-helpers: add mm_autoptr helpers for
GRegex and GMatchInfo") introduces mm_autoptr(), which implements
g_autoptr() that isn't available before glib 2.44. This patch fixes the
code to consistently uses mm_autoptr().
-rw-r--r-- | plugins/altair/mm-modem-helpers-altair-lte.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/altair/mm-modem-helpers-altair-lte.c b/plugins/altair/mm-modem-helpers-altair-lte.c index bb247d75e..09c6f18f9 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) { - g_autoptr(GRegex) r = NULL; - g_autoptr(GMatchInfo) match_info = NULL; + mm_autoptr(GRegex) r = NULL; + mm_autoptr(GMatchInfo) match_info = NULL; gchar *ceer_response = 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) { - g_autoptr(GRegex) regex = NULL; - g_autoptr(GMatchInfo) match_info = NULL; + mm_autoptr(GRegex) regex = NULL; + mm_autoptr(GMatchInfo) match_info = NULL; MMPco *pco = NULL; gint num_matches; |