aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:30:14 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitf3acdcaa1b1a096dc0863eff4d3ad1b8f2a47c65 (patch)
tree15660c87372d54b9072165e34f6928523962fe5e
parent1f2018d52416a16242fdba4d9ca4e1280b9907c0 (diff)
mtk: fix warnings with -Wdiscarded-qualifiers
mtk/mm-broadband-modem-mtk.c:727:6: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 727 | {"+ECSQ=2", 5, FALSE, NULL}, | ^~~~~~~~~ mtk/mm-broadband-modem-mtk.c:733:6: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 733 | {"+ECSQ=0", 5, FALSE, NULL}, | ^~~~~~~~~
-rw-r--r--plugins/mtk/mm-broadband-modem-mtk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mtk/mm-broadband-modem-mtk.c b/plugins/mtk/mm-broadband-modem-mtk.c
index 98620124..9b4ab759 100644
--- a/plugins/mtk/mm-broadband-modem-mtk.c
+++ b/plugins/mtk/mm-broadband-modem-mtk.c
@@ -724,14 +724,14 @@ modem_3gpp_cleanup_unsolicited_events (MMIfaceModem3gpp *self,
static const MMBaseModemAtCommand unsolicited_enable_sequence[] = {
/* enable signal URC */
- {"+ECSQ=2", 5, FALSE, NULL},
- {NULL}
+ { (gchar *) "+ECSQ=2", 5, FALSE, NULL },
+ { NULL }
};
static const MMBaseModemAtCommand unsolicited_disable_sequence[] = {
/* disable signal URC */
- {"+ECSQ=0", 5, FALSE, NULL},
- {NULL}
+ { (gchar *) "+ECSQ=0" , 5, FALSE, NULL },
+ { NULL }
};
static void