aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 07:51:40 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commit50e6ead7e26c37824b0493acc3aef8def119f903 (patch)
treef96ad04b4f4bb188ab79fc8ec4ef3edcdc311b0a
parent23f17ce766f12ec053a63948a92bb55b27c05376 (diff)
huawei: fix warnings with -Wdiscarded-qualifiers
huawei/mm-broadband-modem-huawei.c: At top level: huawei/mm-broadband-modem-huawei.c:2011:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 2011 | { "^PORTSEL=0", 5, FALSE, NULL }, | ^~~~~~~~~~~~ huawei/mm-broadband-modem-huawei.c:2012:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 2012 | { "^CURC=1", 3, FALSE, NULL }, | ^~~~~~~~~
-rw-r--r--plugins/huawei/mm-broadband-modem-huawei.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/huawei/mm-broadband-modem-huawei.c b/plugins/huawei/mm-broadband-modem-huawei.c
index 1fbd3d2b..2c958e47 100644
--- a/plugins/huawei/mm-broadband-modem-huawei.c
+++ b/plugins/huawei/mm-broadband-modem-huawei.c
@@ -2013,8 +2013,8 @@ own_enable_unsolicited_events_ready (MMBaseModem *self,
static const MMBaseModemAtCommand unsolicited_enable_sequence[] = {
/* With ^PORTSEL we specify whether we want the PCUI port (0) or the
* modem port (1) to receive the unsolicited messages */
- { "^PORTSEL=0", 5, FALSE, NULL },
- { "^CURC=1", 3, FALSE, NULL },
+ { (gchar *) "^PORTSEL=0", 5, FALSE, NULL },
+ { (gchar *) "^CURC=1", 3, FALSE, NULL },
{ NULL }
};
@@ -3362,7 +3362,7 @@ own_voice_enable_unsolicited_events_ready (MMBaseModem *self,
static const MMBaseModemAtCommand unsolicited_voice_enable_sequence[] = {
/* With ^DDTMFCFG we active the DTMF Decoder */
- { "^DDTMFCFG=0,1", 3, FALSE, NULL },
+ { (gchar *) "^DDTMFCFG=0,1", 3, FALSE, NULL },
{ NULL }
};
@@ -3435,7 +3435,7 @@ own_voice_disable_unsolicited_events_ready (MMBaseModem *self,
static const MMBaseModemAtCommand unsolicited_voice_disable_sequence[] = {
/* With ^DDTMFCFG we deactivate the DTMF Decoder */
- { "^DDTMFCFG=1,0", 3, FALSE, NULL },
+ { (gchar *) "^DDTMFCFG=1,0", 3, FALSE, NULL },
{ NULL }
};
@@ -3997,7 +3997,7 @@ enable_location_gathering_finish (MMIfaceModemLocation *self,
return g_task_propagate_boolean (G_TASK (res), error);
}
-static char *gps_startup[] = {
+static const gchar *gps_startup[] = {
"^WPDOM=0",
"^WPDST=1",
"^WPDFR=65535,30",
@@ -4186,8 +4186,8 @@ modem_check_time_reply (MMBaseModem *_self,
}
static const MMBaseModemAtCommand time_cmd_sequence[] = {
- { "^NTCT?", 3, FALSE, modem_check_time_reply }, /* 3GPP/LTE */
- { "^TIME", 3, FALSE, modem_check_time_reply }, /* CDMA */
+ { (gchar *) "^NTCT?", 3, FALSE, modem_check_time_reply }, /* 3GPP/LTE */
+ { (gchar *) "^TIME", 3, FALSE, modem_check_time_reply }, /* CDMA */
{ NULL }
};