diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 10:36:50 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 15:18:35 +0100 |
commit | accd1a5841bafc81aa87db46eb35a8255ced4e22 (patch) | |
tree | 32c0ccb8d755242c4de104699813b9edf88450fe /plugins/option/mm-broadband-modem-option.c | |
parent | f77deb75a5d81fb1cfbfff576838900be866d016 (diff) |
base-modem: define new helper MMBaseModemAtCommandAlloc
It has the same exact format as MMBaseModemAtCommand, but its contents
are assumed heap allocated.
The only real purpose of this type is to allow defining static
constant MMBaseModemAtCommand variables without warnings when using
-Wdiscarded-qualifiers.
Diffstat (limited to 'plugins/option/mm-broadband-modem-option.c')
-rw-r--r-- | plugins/option/mm-broadband-modem-option.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/option/mm-broadband-modem-option.c b/plugins/option/mm-broadband-modem-option.c index 268cb531..eaf5a00c 100644 --- a/plugins/option/mm-broadband-modem-option.c +++ b/plugins/option/mm-broadband-modem-option.c @@ -975,10 +975,10 @@ own_enable_unsolicited_events_ready (MMBaseModem *self, } static const MMBaseModemAtCommand unsolicited_enable_sequence[] = { - { (gchar *) "_OSSYS=1", 3, FALSE, NULL }, - { (gchar *) "_OCTI=1", 3, FALSE, NULL }, - { (gchar *) "_OUWCTI=1", 3, FALSE, NULL }, - { (gchar *) "_OSQI=1", 3, FALSE, NULL }, + { "_OSSYS=1", 3, FALSE, NULL }, + { "_OCTI=1", 3, FALSE, NULL }, + { "_OUWCTI=1", 3, FALSE, NULL }, + { "_OSQI=1", 3, FALSE, NULL }, { NULL } }; @@ -1030,10 +1030,10 @@ modem_3gpp_disable_unsolicited_events_finish (MMIfaceModem3gpp *self, } static const MMBaseModemAtCommand unsolicited_disable_sequence[] = { - { (gchar *) "_OSSYS=0", 3, FALSE, NULL }, - { (gchar *) "_OCTI=0", 3, FALSE, NULL }, - { (gchar *) "_OUWCTI=0", 3, FALSE, NULL }, - { (gchar *) "_OSQI=0", 3, FALSE, NULL }, + { "_OSSYS=0", 3, FALSE, NULL }, + { "_OCTI=0", 3, FALSE, NULL }, + { "_OUWCTI=0", 3, FALSE, NULL }, + { "_OSQI=0", 3, FALSE, NULL }, { NULL } }; |