summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-04-03 21:11:58 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-04-03 21:12:18 +0200
commit6d543dee09fed877b8d27393bf2857bfad7e37c6 (patch)
treeeb9b8992d24ad375faa6321fbcfe3dd9e49fc1ff
parentd8430a86f28ca15240c925cd7a0ef18218e6f727 (diff)
downloadlibqmi-6d543dee09fed877b8d27393bf2857bfad7e37c6.tar.gz
qmicli,nas: avoid redefining 'index'
qmicli-nas.c: In function 'get_lte_cphy_ca_info_ready': qmicli-nas.c:2780:12: error: declaration of 'index' shadows a global declaration [-Werror=shadow] cc1: all warnings being treated as errors make[7]: *** [qmicli-qmicli-nas.o] Error 1
-rw-r--r--src/qmicli/qmicli-nas.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
index 10e6b23f..18402c99 100644
--- a/src/qmicli/qmicli-nas.c
+++ b/src/qmicli/qmicli-nas.c
@@ -2777,7 +2777,7 @@ get_lte_cphy_ca_info_ready (QmiClientNas *client,
QmiNasDLBandwidth dl_bandwidth;
QmiNasActiveBand band;
QmiNasScellState state;
- guint8 index;
+ guint8 scell_index;
output = qmi_client_nas_get_lte_cphy_ca_info_finish (client, res, &error);
if (!output) {
@@ -2845,9 +2845,9 @@ get_lte_cphy_ca_info_ready (QmiClientNas *client,
if (qmi_message_nas_get_lte_cphy_ca_info_output_get_scell_index (
output,
- &index,
+ &scell_index,
NULL)) {
- g_print ("Secondary Cell index: '%u'\n", index);
+ g_print ("Secondary Cell index: '%u'\n", scell_index);
}
qmi_message_nas_get_lte_cphy_ca_info_output_unref (output);