aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-modem-helpers.c6
-rw-r--r--src/mm-modem-helpers.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index efd24649..9398a286 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -4011,8 +4011,8 @@ mm_3gpp_parse_pdu_cmgl_response (const gchar *str,
* many more facilities defined (for various flavors of call
* barring); we only map the ones we care about. */
typedef struct {
- MMModem3gppFacility facility;
- gchar *acronym;
+ MMModem3gppFacility facility;
+ const gchar *acronym;
} FacilityAcronym;
static const FacilityAcronym facility_acronyms[] = {
@@ -4039,7 +4039,7 @@ mm_3gpp_acronym_to_facility (const gchar *str)
return MM_MODEM_3GPP_FACILITY_NONE;
}
-gchar *
+const gchar *
mm_3gpp_facility_to_acronym (MMModem3gppFacility facility)
{
guint i;
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h
index 0fea8b0e..c41d1d31 100644
--- a/src/mm-modem-helpers.h
+++ b/src/mm-modem-helpers.h
@@ -414,8 +414,8 @@ gboolean mm_3gpp_parse_ccwa_service_query_response (const gchar *response,
/* Additional 3GPP-specific helpers */
-MMModem3gppFacility mm_3gpp_acronym_to_facility (const gchar *str);
-gchar *mm_3gpp_facility_to_acronym (MMModem3gppFacility facility);
+MMModem3gppFacility mm_3gpp_acronym_to_facility (const gchar *str);
+const gchar *mm_3gpp_facility_to_acronym (MMModem3gppFacility facility);
MMModemAccessTechnology mm_string_to_access_tech (const gchar *string);